java.lang.Object
- All Implemented Interfaces:
Cloneable
,RandomVariableOps<UniformLongRV>
,RandomVariableRVNOps<Long,
,UniformLongRV> RandomVariableRVOps<Long,
UniformLongRV>
Random variable that generates the same integer-valued random variable
repeatedly.
-
Constructor Summary
ConstructorsConstructorDescriptionUniformLongRVRV
(LongRandomVariable lowerLimitRV, boolean lowerClosed, LongRandomVariable upperLimitRV, boolean upperClosed) Constructor specifying random variables for range type (open, closed, etc.).UniformLongRVRV
(LongRandomVariable lowerLimitRV, LongRandomVariable upperLimitRV) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionclone()
protected UniformLongRV
doNext()
Get the next value for a random variable.Methods inherited from class org.bzdev.math.rv.LongRandomVariableRV
cmp, next, setMaximum, setMinimum, tightenMaximum, tightenMaximumS, tightenMinimum, tightenMinimumS
Methods inherited from class org.bzdev.math.rv.RandomVariableRVN
getMaximumClosed, getMaximumRV, getMinimumClosed, getMinimumRV
Methods inherited from class org.bzdev.math.rv.RandomVariableRV
determineIfOrdered, getCharacteristics, parallelStream, parallelStream, stream, stream
Methods inherited from class org.bzdev.math.rv.RandomVariable
getMaximum, getMinimum, setMaximum, setMinimum, setRequiredMaximum, setRequiredMinimum, spliterator, spliterator, tightenMaximum, tightenMinimum
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.bzdev.math.rv.RandomVariableOps
getMaximum, getMinimum, setMaximum, setMinimum, tightenMaximum, tightenMinimum
-
Constructor Details
-
UniformLongRVRV
Constructor.- Parameters:
lowerLimitRV
- random variable for the lower limit for the random variable producedupperLimitRV
- random variable for the lower limit for the random variable produced
-
UniformLongRVRV
public UniformLongRVRV(LongRandomVariable lowerLimitRV, boolean lowerClosed, LongRandomVariable upperLimitRV, boolean upperClosed) Constructor specifying random variables for range type (open, closed, etc.).- Parameters:
lowerLimitRV
- random variable for the lower limit for the random variable producedlowerClosed
- true if the lower limit is included in the range and false if it is notupperLimitRV
- random variable for the lower limit for the random variable producedupperClosed
- true if the upper limit is included in the range and false if it is not
-
-
Method Details
-
doNext
Description copied from class:RandomVariableRVN
Get the next value for a random variable. In general, each value will be independent of the last.- Specified by:
doNext
in classRandomVariableRVN<Long,
UniformLongRV> - Returns:
- the next random variable
- Throws:
RandomVariableException
- the next random variable could not be generated.
-
clone
- Overrides:
clone
in classRandomVariable<UniformLongRV>
- Throws:
CloneNotSupportedException
-