org.apache.commons.math.distribution
Interface PascalDistribution

All Superinterfaces:
DiscreteDistribution, Distribution, IntegerDistribution
All Known Implementing Classes:
PascalDistributionImpl

public interface PascalDistribution
extends IntegerDistribution

The Pascal distribution. The Pascal distribution is a special case of the Negative Binomial distribution where the number of successes parameter is an integer. There are various ways to express the probability mass and distribution functions for the Pascal distribution. The convention employed by the library is to express these functions in terms of the number of failures in a Bernoulli experiment [2].

References:

  1. Negative Binomial Distribution
  2. Waiting Time in a Bernoulli Process

    Since:
    1.2
    Version:
    $Id: PascalDistribution.java 1131229 2011-06-03 20:49:25Z luc $

    Method Summary
     int getNumberOfSuccesses()
              Access the number of successes for this distribution.
     double getProbabilityOfSuccess()
              Access the probability of success for this distribution.
     
    Methods inherited from interface org.apache.commons.math.distribution.IntegerDistribution
    cumulativeProbability, cumulativeProbability, inverseCumulativeProbability, probability, reseedRandomGenerator, sample, sample
     
    Methods inherited from interface org.apache.commons.math.distribution.DiscreteDistribution
    probability
     
    Methods inherited from interface org.apache.commons.math.distribution.Distribution
    cumulativeProbability, cumulativeProbability, getNumericalMean, getNumericalVariance, isSupportConnected, isSupportLowerBoundInclusive, isSupportUpperBoundInclusive
     

    Method Detail

    getNumberOfSuccesses

    int getNumberOfSuccesses()
    Access the number of successes for this distribution.

    Returns:
    the number of successes.

    getProbabilityOfSuccess

    double getProbabilityOfSuccess()
    Access the probability of success for this distribution.

    Returns:
    the probability of success.


    Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.