|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectJSci.maths.statistics.ProbabilityDistribution
JSci.maths.statistics.BinomialDistribution
public final class BinomialDistribution
The BinomialDistribution class provides an object for encapsulating binomial distributions.
| Constructor Summary | |
|---|---|
BinomialDistribution(int trials,
double prob)
Constructs a binomial distribution. |
|
| Method Summary | |
|---|---|
double |
cumulative(double X)
Cumulative binomial distribution function. |
double |
getMean()
Returns the mean. |
double |
getProbabilityParameter()
Returns the probability. |
int |
getTrialsParameter()
Returns the number of trials. |
double |
getVariance()
Returns the variance. |
double |
inverse(double probability)
Inverse of the cumulative binomial distribution function. |
double |
probability(double X)
Probability density function of a binomial distribution. |
| Methods inherited from class JSci.maths.statistics.ProbabilityDistribution |
|---|
checkRange, checkRange, findRoot |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BinomialDistribution(int trials,
double prob)
trials - the number of trials.prob - the probability.| Method Detail |
|---|
public int getTrialsParameter()
public double getProbabilityParameter()
public double getMean()
public double getVariance()
public double probability(double X)
probability in class ProbabilityDistributionX - should be integer-valued.
public double cumulative(double X)
cumulative in class ProbabilityDistributionX - should be integer-valued.
public double inverse(double probability)
inverse in class ProbabilityDistribution
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||