|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doodleproject.numerics4j.statistics.distribution.DiscreteDistribution
public abstract class DiscreteDistribution
Base discrete distribution.
| Constructor Summary | |
|---|---|
DiscreteDistribution()
|
|
| Method Summary | |
|---|---|
abstract double |
cumulativeProbability(int x)
The CDF for this distribution. |
protected int |
findInverseCumulativeProbability(double p,
int lower,
int initial,
int upper)
Generic means to compute inverse cumulative probability values. |
abstract int |
inverseCumulativeProbability(double p)
The inverse CDF for this distribution. |
abstract double |
probability(int x)
The PMF for this distribution. |
protected double |
simpleCumulativeProbability(int x0,
int x1)
Generic means to compute cumulative probability values. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DiscreteDistribution()
| Method Detail |
|---|
public abstract double cumulativeProbability(int x)
throws NumericException
x - the value at which the CDF is evaluated.
NumericException - if the cumulative probability can not be
computed.
protected double simpleCumulativeProbability(int x0,
int x1)
throws NumericException
x0 - the lower bound of summation.x1 - the upper bound of summation.
NumericException - if the cumulative probability can not be
computed.
protected int findInverseCumulativeProbability(double p,
int lower,
int initial,
int upper)
throws NumericException
p - the cumulative probability.lower - the global lower bound of the inverse CDF value.initial - an initial guess at the inverse CDF value.upper - the global upper bound of the inverse CDF value.
NumericException - if the inverse cumulative probability can not be
computed.
public abstract int inverseCumulativeProbability(double p)
throws NumericException
p - the cumulative probability.
NumericException - if the inverse cumulative probability can not be
computed.
public abstract double probability(int x)
throws NumericException
x - the value at which the probability is evaluated.
NumericException - if the probability can not be computed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||