public class IntegerAlleleSet extends GenericAlleleSet<java.lang.Integer>
Constructor and Description |
---|
IntegerAlleleSet(java.util.Set<java.lang.Integer> set)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
static IntegerAlleleSet |
createRandom(int size,
int lowerBound,
int upperBound)
Builds an IntegerAlleleSet with random values within the range [lowerBound,upperBound]
|
static IntegerAlleleSet |
createUniform(int size,
int lowerBound,
int upperBound)
Builds a new IntegerAlleleSet with uniformly distributed values within the range [lowerBound,upperBound]
|
difference, getDefaultDifferences, getElementAt, getIndexOf, getRandomValue, setDifferences, size
public IntegerAlleleSet(java.util.Set<java.lang.Integer> set)
set
- public static IntegerAlleleSet createRandom(int size, int lowerBound, int upperBound)
size
- the allala set cardinalitylowerBound
- the min value to chooseupperBound
- the max value to choosepublic static IntegerAlleleSet createUniform(int size, int lowerBound, int upperBound)
size
- the allala set cardinalitylowerBound
- the min value to chooseupperBound
- the max value to choose