public class PowerSet<T>
extends java.lang.Object
Code taken from StackOverflow best answer in: http://stackoverflow.com/questions/4640034/calculating-all-of-the-subsets -of-a-set-of-numbers. HashSet changed to LinkedHashSet for the consistent order of the subsets and easier testing.
Currently used to calculate the possible LOCAL symmetries in
QuatSymmetryDetector.
| Constructor and Description |
|---|
PowerSet() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<java.util.Set<T>> |
powerSet(java.util.Set<T> originalSet) |
Copyright © 2000-2020 BioJava. All Rights Reserved.