org.ojalgo.random
Class RandomNumber
java.lang.Object
java.lang.Number
org.ojalgo.random.RandomNumber
- All Implemented Interfaces:
- Serializable, Function<Double>, NullaryFunction<Double>, Distribution
- Direct Known Subclasses:
- Binomial, Exponential, Gamma, Geometric, LogNormal, Normal, Poisson, Uniform, Weibull
public abstract class RandomNumber
- extends Number
- implements Distribution, NullaryFunction<Double>
RandomNumber
- Author:
- apete
- See Also:
- Serialized Form
doubleValue
public final double doubleValue()
- Specified by:
doubleValue in class Number
floatValue
public final float floatValue()
- Specified by:
floatValue in class Number
getStandardDeviation
public double getStandardDeviation()
- Subclasses must override either getStandardDeviation() or getVariance()!
- Specified by:
getStandardDeviation in interface Distribution
- See Also:
Distribution.getStandardDeviation(),
Distribution.getVariance()
getVariance
public double getVariance()
- Subclasses must override either getStandardDeviation() or getVariance()!
- Specified by:
getVariance in interface Distribution
- See Also:
Distribution.getStandardDeviation(),
Distribution.getVariance()
intValue
public final int intValue()
- Specified by:
intValue in class Number
invoke
public final Double invoke()
- Specified by:
invoke in interface NullaryFunction<Double>
longValue
public final long longValue()
- Specified by:
longValue in class Number