public abstract class DiscreteDistribution extends Object implements Distribution
Constructor and Description |
---|
DiscreteDistribution() |
Modifier and Type | Method and Description |
---|---|
abstract double |
cumulativeProbability(int x)
The CDF for this distribution.
|
abstract int |
inverseCumulativeProbability(double p)
The inverse CDF for this distribution.
|
abstract double |
probability(int x)
The PMF for this distribution.
|
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.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.Jas4pp 1.5 © Java Analysis Studio for Particle Physics