Class IntGeometric

    • Constructor Detail

      • IntGeometric

        public IntGeometric()
      • IntGeometric

        public IntGeometric​(double probOfSuccess)
    • Method Detail

      • setDistribution

        protected void setDistribution​(org.apache.commons.math3.distribution.IntegerDistribution distribution)
        Description copied from class: IntDistribution
        Sets the discrete distribution to use.
        Overrides:
        setDistribution in class IntDistribution
      • getProbabilityOfSuccess

        public double getProbabilityOfSuccess()
      • setProbabilityOfSuccess

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