Class BinomialLongRV

All Implemented Interfaces:
Cloneable, RandomVariableOps<Long>

public class BinomialLongRV extends LongRandomVariable
Long-valued random variable that generates a binomial distribution for n tries. Each number in the sequence represents the number of successful tries out of n tries.
  • Constructor Details

  • Method Details

    • getProb

      public double getProb()
      Get the probability that a try succeeds.
      Returns:
      the probability that a try succeeds.
    • getN

      public long getN()
      Get the number of tries for this random variable.
      Returns:
      the number of tries
    • next

      public Long 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<Long>
      Specified by:
      next in class RandomVariable<Long>
      Returns:
      the next value