Class IntBernoulli

    • Constructor Detail

      • IntBernoulli

        public IntBernoulli()
      • IntBernoulli

        public IntBernoulli​(double probabilityOfSuccess)
    • Method Detail

      • getValueRange

        public Pair<Double,​Double> getValueRange()
        Description copied from class: DblSequence
        This method computes the minimum and maximum support values (range of possible values) of this stream.
        Overrides:
        getValueRange in class DblSequence
        Returns:
        A Pair containing the minimum and maximum support values.
      • getProbabilityOfSuccess

        public double getProbabilityOfSuccess()
      • setProbabilityOfSuccess

        public void setProbabilityOfSuccess​(double probOfSuccess)
                                     throws org.apache.commons.math3.exception.OutOfRangeException
        Sets the probability of success.
        Parameters:
        probOfSuccess - The success probability.
        Throws:
        org.apache.commons.math3.exception.OutOfRangeException - If the supplied probability is not in the interval [0,1].