java.lang.Object
- All Implemented Interfaces:
Cloneable,RandomVariableOps<PoissonDoubleRV>,RandomVariableRVNOps<Double,,PoissonDoubleRV> RandomVariableRVOps<Double,PoissonDoubleRV>
Class to generate a sequence of double-valued Poisson Random Variables.
-
Constructor Summary
ConstructorsConstructorDescriptionPoissonDoubleRVRV(DoubleRandomVariable lambdaRV) Constructor.PoissonDoubleRVRV(DoubleRandomVariable lambdaRV, boolean mode) Constructor with a mode to allow tables to be allocated. -
Method Summary
Modifier and TypeMethodDescriptionprotected PoissonDoubleRVdoNext()Get the next value for a random variable.Methods inherited from class org.bzdev.math.rv.DoubleRandomVariableRV
cmp, next, setMaximum, setMinimum, tightenMaximum, tightenMaximumS, tightenMinimum, tightenMinimumSMethods inherited from class org.bzdev.math.rv.RandomVariableRVN
getMaximumClosed, getMaximumRV, getMinimumClosed, getMinimumRVMethods inherited from class org.bzdev.math.rv.RandomVariableRV
determineIfOrdered, getCharacteristics, parallelStream, parallelStream, stream, streamMethods inherited from class org.bzdev.math.rv.RandomVariable
clone, getMaximum, getMinimum, setMaximum, setMinimum, setRequiredMaximum, setRequiredMinimum, spliterator, spliterator, tightenMaximum, tightenMinimumMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bzdev.math.rv.RandomVariableOps
getMaximum, getMinimum, setMaximum, setMinimum, tightenMaximum, tightenMinimum
-
Constructor Details
-
PoissonDoubleRVRV
Constructor.- Parameters:
lambdaRV- a random variable that determines the parameter λ which gives the mean of the distribution for a Poisson random variable
-
PoissonDoubleRVRV
Constructor with a mode to allow tables to be allocated.- Parameters:
lambdaRV- a random variable that determines the parameter λ which gives the mean of the distribution for a Poisson random variablemode- true if tables should be allocated to improve execution speed when a PoissonDoubleRV is created; false otherwise- See Also:
-
-
Method Details
-
doNext
Description copied from class:RandomVariableRVNGet the next value for a random variable. In general, each value will be independent of the last.- Specified by:
doNextin classRandomVariableRVN<Double,PoissonDoubleRV> - Returns:
- the next random variable
- Throws:
RandomVariableException- the next random variable could not be generated.
-