|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ContinuousDistribution
Base interface for continuous distributions.
| Method Summary | |
|---|---|
double |
density(double x)
Probability density for a particular point. |
double |
inverseCumulativeProbability(double p)
For a distribution, X, compute x such that
P(X < x) = p. |
void |
reseedRandomGenerator(long seed)
Reseed the random generator used to generate samples. |
double |
sample()
Generate a random value sampled from this distribution. |
double[] |
sample(int sampleSize)
Generate a random sample from the distribution. |
| Methods inherited from interface org.apache.commons.math.distribution.Distribution |
|---|
cumulativeProbability, cumulativeProbability, getNumericalMean, getNumericalVariance, isSupportConnected, isSupportLowerBoundInclusive, isSupportUpperBoundInclusive |
| Method Detail |
|---|
double inverseCumulativeProbability(double p)
X, compute x such that
P(X < x) = p.
p - Cumulative probability.
x such that P(X < x) = p.double density(double x)
x - Point at which the density should be computed.
x.void reseedRandomGenerator(long seed)
seed - New seed.double sample()
double[] sample(int sampleSize)
sampleSize - number of random values to generate.
NotStrictlyPositiveException - if sampleSize is not positive.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||