|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PascalDistribution
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:
Method Summary | |
---|---|
int |
getNumberOfSuccesses()
Access the number of successes for this distribution. |
double |
getProbabilityOfSuccess()
Access the probability of success for this distribution. |
void |
setNumberOfSuccesses(int successes)
Change the number of successes for this distribution. |
void |
setProbabilityOfSuccess(double p)
Change the probability of success for this distribution. |
Methods inherited from interface org.apache.commons.math.distribution.IntegerDistribution |
---|
cumulativeProbability, cumulativeProbability, inverseCumulativeProbability, probability |
Methods inherited from interface org.apache.commons.math.distribution.DiscreteDistribution |
---|
probability |
Methods inherited from interface org.apache.commons.math.distribution.Distribution |
---|
cumulativeProbability, cumulativeProbability |
Method Detail |
---|
int getNumberOfSuccesses()
double getProbabilityOfSuccess()
void setNumberOfSuccesses(int successes)
successes
- the new number of successesvoid setProbabilityOfSuccess(double p)
p
- the new probability of success
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |