org.ojalgo.random
Class RandomNumber

java.lang.Object
  extended by java.lang.Number
      extended by 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

Method Summary
 double doubleValue()
           
 float floatValue()
           
 double getStandardDeviation()
          Subclasses must override either getStandardDeviation() or getVariance()!
 double getVariance()
          Subclasses must override either getStandardDeviation() or getVariance()!
 int intValue()
           
 Double invoke()
           
 long longValue()
           
 
Methods inherited from class java.lang.Number
byteValue, shortValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ojalgo.random.Distribution
getExpected
 

Method Detail

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