java.lang.Object
- All Implemented Interfaces:
Cloneable
,RandomVariableOps<UniformIATimeRV>
,RandomVariableRVNOps<Long,
,UniformIATimeRV> RandomVariableRVOps<Long,
UniformIATimeRV>
Random variable that generates an interarrival time with uniform probability
over a range of values.
-
Constructor Summary
ConstructorsConstructorDescriptionUniformIATimeRVRV
(LongRandomVariable lowerLimit, boolean lowerClosed, LongRandomVariable upperLimit, boolean upperClosed) Constructor specifying range type (open, closed, etc.).UniformIATimeRVRV
(LongRandomVariable lowerLimit, LongRandomVariable upperLimit) Constructor. -
Method Summary
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
clone, 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
-
UniformIATimeRVRV
Constructor. The values produced are in the range [lowerLimit, upperLimit).- Parameters:
lowerLimit
- the lower limit of the values producedupperLimit
- the upper limit of the values produced
-
UniformIATimeRVRV
public UniformIATimeRVRV(LongRandomVariable lowerLimit, boolean lowerClosed, LongRandomVariable upperLimit, boolean upperClosed) Constructor specifying range type (open, closed, etc.).- Parameters:
lowerLimit
- the lower limit of the values producedlowerClosed
- true if the lower limit is included in the range of values produced; false otherwiseupperLimit
- the upper limit of the values producedupperClosed
- true if the upper limit is included in the range of values produced; false otherwise
-
-
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,
UniformIATimeRV> - Returns:
- the next random variable
-