java.lang.Object
org.ojalgo.random.RandomNumber
org.ojalgo.random.Erlang
- All Implemented Interfaces:
Comparable<RandomNumber>,DoubleSupplier,Supplier<Double>,BasicFunction,NullaryFunction<Double>,PrimitiveFunction.Nullary,Distribution,AccessScalar<Double>,ComparableNumber<RandomNumber>,NumberDefinition
Distribution of the sum of aCount random variables with an exponential distribution with parameter aLambda.
-
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 TypeMethodDescriptionprotected doublegenerate()doubledoubleSubclasses must override either getStandardDeviation() or getVariance()!Methods inherited from class org.ojalgo.random.RandomNumber
checkProbabilty, compareTo, doubleValue, floatValue, getStandardDeviation, intValue, invoke, longValue, newSampleSet, random, setRandom, setSeed, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.ojalgo.function.NullaryFunction
andThen, get, getAsDoubleMethods inherited from interface org.ojalgo.type.NumberDefinition
booleanValue, byteValue, shortValue
-
Field Details
-
myCount
private final int myCount -
myRate
private final double myRate
-
-
Constructor Details
-
Erlang
public Erlang() -
Erlang
public Erlang(int aCount, double aRate)
-
-
Method Details
-
getExpected
public double getExpected() -
getVariance
public double getVariance()Description copied from class:RandomNumberSubclasses must override either getStandardDeviation() or getVariance()!- Specified by:
getVariancein interfaceDistribution- Overrides:
getVariancein classRandomNumber- See Also:
-
generate
protected double generate()- Specified by:
generatein classRandomNumber
-