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