Package org.ojalgo.random
Class Deterministic
java.lang.Object
org.ojalgo.random.RandomNumber
org.ojalgo.random.Deterministic
- All Implemented Interfaces:
Comparable<RandomNumber>
,DoubleSupplier
,Supplier<Double>
,BasicFunction
,NullaryFunction<Double>
,PrimitiveFunction.Nullary
,Distribution
,AccessScalar<Double>
,ComparableNumber<RandomNumber>
,NumberDefinition
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ojalgo.function.BasicFunction
BasicFunction.Differentiable<N extends Comparable<N>,
F extends BasicFunction>, BasicFunction.Integratable<N extends Comparable<N>, F extends BasicFunction>, BasicFunction.PlainUnary<T, R> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
protected double
generate()
double
double
Subclasses must override either getStandardDeviation() or getVariance()!double
Subclasses must override either getStandardDeviation() or getVariance()!Methods inherited from class org.ojalgo.random.RandomNumber
checkProbabilty, compareTo, doubleValue, floatValue, intValue, invoke, longValue, newSampleSet, random, setRandom, setSeed, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.ojalgo.function.NullaryFunction
andThen, get, getAsDouble
Methods inherited from interface org.ojalgo.type.NumberDefinition
booleanValue, byteValue, shortValue
-
Field Details
-
myValue
private final double myValue
-
-
Constructor Details
-
Deterministic
public Deterministic() -
Deterministic
-
Deterministic
public Deterministic(double aValue)
-
-
Method Details
-
compareTo
-
getExpected
public double getExpected() -
getStandardDeviation
public double getStandardDeviation()Description copied from class:RandomNumber
Subclasses must override either getStandardDeviation() or getVariance()!- Specified by:
getStandardDeviation
in interfaceDistribution
- Overrides:
getStandardDeviation
in classRandomNumber
- See Also:
-
getVariance
public double getVariance()Description copied from class:RandomNumber
Subclasses must override either getStandardDeviation() or getVariance()!- Specified by:
getVariance
in interfaceDistribution
- Overrides:
getVariance
in classRandomNumber
- See Also:
-
generate
protected double generate()- Specified by:
generate
in classRandomNumber
-