|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.statcato.statistics.DiscreteProbabilityDistribution
public abstract class DiscreteProbabilityDistribution
Abtract base class for different types of discrete probability distributions. Subclasses must implement density and cumulativeProbability methods.
Constructor Summary | |
---|---|
DiscreteProbabilityDistribution()
|
Method Summary | |
---|---|
abstract double |
cumulativeProbability(double x)
Returns the cumulative probabililty up to x. |
abstract double |
density(double x)
Returns the density of the distribution at x. |
java.lang.Double |
inverseCumulativeProbability(double x1,
double x2,
double tol,
double area)
Returns the inverse cumulative probability. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DiscreteProbabilityDistribution()
Method Detail |
---|
public abstract double density(double x)
x
-
public abstract double cumulativeProbability(double x)
x
-
public java.lang.Double inverseCumulativeProbability(double x1, double x2, double tol, double area)
x1
- lower bound of rootx2
- upper bound of roottol
- tolerancearea
- cumulative probability
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |