|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjhplot.math.num.pdf.DiscreteDistribution
jhplot.math.num.pdf.Geometric
public class Geometric
The Geometric distribution.
References:
Constructor Summary | |
---|---|
Geometric()
Default constructor. |
|
Geometric(double p)
Create a distribution with the given probability of success. |
Method Summary | |
---|---|
double |
cumulativeProbability(int x)
The CDF for this distribution. |
double |
getProbabilityOfSuccess()
Access probability of success. |
int |
inverseCumulativeProbability(double p)
The inverse CDF for this distribution. |
double |
probability(int x)
The PMF for this distribution. |
void |
setProbabilityOfSuccess(double p)
Modify probability of success. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Geometric()
public Geometric(double p)
p
- the probability of success.Method Detail |
---|
public double cumulativeProbability(int x) throws NumericException
cumulativeProbability
in class DiscreteDistribution
x
- the value at which the CDF is evaluated.
NumericException
- if the cumulative probability can not be
computed.public double getProbabilityOfSuccess()
public int inverseCumulativeProbability(double p) throws NumericException
inverseCumulativeProbability
in class DiscreteDistribution
p
- the cumulative probability.
NumericException
- if the inverse cumulative probability can not be
computed.public double probability(int x)
probability
in class DiscreteDistribution
x
- the value at which the probability is evaluated.
public void setProbabilityOfSuccess(double p)
p
- the new probability of success value.
|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |