java.lang.Object
org.bzdev.math.rv.RandomVariable<Boolean>
org.bzdev.math.rv.BooleanRandomVariable
org.bzdev.math.rv.UniformBooleanRV
- All Implemented Interfaces:
Cloneable,RandomVariableOps<Boolean>
Random variable that generates true or false with equal probabilities.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.bzdev.math.rv.BooleanRandomVariable
parallelStream, parallelStream, stream, stream, tightenMaximumS, tightenMinimumSMethods inherited from class org.bzdev.math.rv.RandomVariable
clone, getCharacteristics, getMaximum, getMaximumClosed, getMinimum, getMinimumClosed, setMaximum, setMinimum, setRequiredMaximum, setRequiredMinimum, spliterator, spliterator, tightenMaximum, tightenMinimum
-
Constructor Details
-
UniformBooleanRV
public UniformBooleanRV()
-
-
Method Details
-
next
Description copied from class:RandomVariableGet the next value for a random variable. In general, each value will be independent of the last.- Specified by:
nextin interfaceRandomVariableOps<Boolean>- Specified by:
nextin classRandomVariable<Boolean>- Returns:
- the next value
-
toString
-