Class BinomialBooleanRV

All Implemented Interfaces:
Cloneable, RandomVariableOps<Boolean>

public class BinomialBooleanRV extends BooleanRandomVariable
Random variable that generates 'true' or 'false' with a specified probability.
  • Constructor Details

  • Method Details

    • getProb

      public double getProb()
      Get the probability that this random variable has the value true.
      Returns:
      the probability that this random variable has the value 'true'
    • next

      public Boolean next()
      Description copied from class: RandomVariable
      Get the next value for a random variable. In general, each value will be independent of the last.
      Specified by:
      next in interface RandomVariableOps<Boolean>
      Specified by:
      next in class RandomVariable<Boolean>
      Returns:
      the next value