Package org.ojalgo.random
Class Deterministic
- java.lang.Object
-
- org.ojalgo.random.RandomNumber
-
- org.ojalgo.random.Deterministic
-
- All Implemented Interfaces:
java.lang.Comparable<RandomNumber>
,java.util.function.DoubleSupplier
,java.util.function.Supplier<java.lang.Double>
,BasicFunction
,NullaryFunction<java.lang.Double>
,PrimitiveFunction.Nullary
,Distribution
,AccessScalar<java.lang.Double>
,ComparableNumber<RandomNumber>
,NumberDefinition
public class Deterministic extends RandomNumber
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ojalgo.function.BasicFunction
BasicFunction.Differentiable<N extends java.lang.Comparable<N>,F extends BasicFunction>, BasicFunction.Integratable<N extends java.lang.Comparable<N>,F extends BasicFunction>, BasicFunction.PlainUnary<T,R>
-
-
Field Summary
Fields Modifier and Type Field Description private double
myValue
-
Constructor Summary
Constructors Constructor Description Deterministic()
Deterministic(double aValue)
Deterministic(java.lang.Comparable<?> aValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Deterministic o)
protected double
generate()
double
getExpected()
double
getStandardDeviation()
Subclasses must override either getStandardDeviation() or getVariance()!double
getVariance()
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
-
-
-
-
Method Detail
-
compareTo
public int compareTo(Deterministic o)
-
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:
Distribution.getStandardDeviation()
,Distribution.getVariance()
-
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:
Distribution.getStandardDeviation()
,Distribution.getVariance()
-
generate
protected double generate()
- Specified by:
generate
in classRandomNumber
-
-