|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object JSci.maths.statistics.ProbabilityDistribution
The ProbabilityDistribution superclass provides an object for encapsulating probability distributions.
Constructor Summary | |
ProbabilityDistribution()
Constructs a probability distribution. |
Method Summary | |
protected void |
checkRange(double x)
Check if the range of the argument of the distribution method is between 0.0 and 1.0. |
protected void |
checkRange(double x,
double lo,
double hi)
Check if the range of the argument of the distribution method is between lo and hi . |
abstract double |
cumulative(double X)
Cumulative distribution function. |
protected double |
findRoot(double prob,
double guess,
double xLo,
double xHi)
This method approximates the value of X for which P(x<X)=prob. |
abstract double |
inverse(double probability)
Inverse of the cumulative distribution function. |
abstract double |
probability(double X)
Probability density function. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ProbabilityDistribution()
Method Detail |
public abstract double probability(double X)
public abstract double cumulative(double X)
public abstract double inverse(double probability)
protected final void checkRange(double x, double lo, double hi)
lo
and hi
.
OutOfRangeException
- If the argument is out of range.protected final void checkRange(double x)
OutOfRangeException
- If the argument is out of range.protected final double findRoot(double prob, double guess, double xLo, double xHi)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |