| Modifier and Type | Field and Description |
|---|---|
| protected final RandomGenerator | random
RNG instance used to generate samples from the distribution. |
| protected RandomDataImpl | randomData
Deprecated
As of 3.1, to be removed in 4.0. Please use the
RandomData instance used to generate samples from the distribution.
random instance variable instead.
|
| private static final long | serialVersionUID
Serializable version identifier |
| public static final double | SOLVER_DEFAULT_ABSOLUTE_ACCURACY
Default accuracy. |
| private double | solverAbsoluteAccuracy
Solver absolute accuracy for inverse cumulative computation |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public double | cumulativeProbability(double
the exclusive lower bound x0, double the inclusive upper bound x1)Implements org.
Deprecated
As of 3.1 (to be removed in 4.0). Please use
probability(double, double) instead.
For a random variable |
| protected double | Returns: the maximum absolute error in inverse cumulative probability estimatesReturns the solver absolute accuracy for inverse cumulative computation. |
| public double | inverseCumulativeProbability(final double
the cumulative probability p)Implements org. Computes the quantile function of this distribution. |
| public double | Returns: the logarithm of the value of the probability density function at pointxthe point at which the PDF is evaluated x)Returns the natural logarithm of the probability density function (PDF) of this distribution
evaluated at the specified point |
| public double | Returns: the probability that a random variable with this distribution takes a value betweenx0 and x1, excluding the lower
and including the upper endpoint.Lower bound (excluded). x0, double Upper bound (included). x1)For a random variable |
| public double | Returns: zero.the point at which the PMF is evaluated x)Implements org. For a random variable |
| public void | reseedRandomGenerator(long
the new seed seed)Implements org. Reseed the random generator used to generate samples. |
| public double | sample()
Implements org. Generate a random value sampled from this distribution. |
| public double[] | sample(int
the number of random values to generate sampleSize)Implements org. Generate a random sample from the distribution. |
| random | back to summary |
|---|---|
| protected final RandomGenerator random RNG instance used to generate samples from the distribution.
| |
| randomData | back to summary |
|---|---|
| protected RandomDataImpl randomData
Deprecated As of 3.1, to be removed in 4.0. Please use the
RandomData instance used to generate samples from the distribution. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Serializable version identifier | |
| SOLVER_DEFAULT_ABSOLUTE_ACCURACY | back to summary |
|---|---|
| public static final double SOLVER_DEFAULT_ABSOLUTE_ACCURACY Default accuracy. | |
| solverAbsoluteAccuracy | back to summary |
|---|---|
| private double solverAbsoluteAccuracy Solver absolute accuracy for inverse cumulative computation | |
| AbstractRealDistribution | back to summary |
|---|---|
| protected AbstractRealDistribution()
Deprecated As of 3.1, to be removed in 4.0. Please use
| |
| AbstractRealDistribution | back to summary |
|---|---|
protected AbstractRealDistribution(RandomGenerator rng)
| |
| cumulativeProbability | back to summary |
|---|---|
| public double cumulativeProbability(double x0, double x1) throws NumberIsTooLargeException Implements org. Doc from org. Deprecated As of 3.1 (to be removed in 4.0). Please use
For a random variable
| |
| getSolverAbsoluteAccuracy | back to summary |
|---|---|
| protected double getSolverAbsoluteAccuracy() Returns the solver absolute accuracy for inverse cumulative computation. You can override this method in order to use a Brent solver with an absolute accuracy different from the default.
| |
| inverseCumulativeProbability | back to summary |
|---|---|
| public double inverseCumulativeProbability(final double p) throws OutOfRangeException Implements org. Doc from org. Computes the quantile function of this distribution. For a random
variable
| |
| logDensity | back to summary |
|---|---|
| public double logDensity(double x) Returns the natural logarithm of the probability density function (PDF) of this distribution
evaluated at the specified point
| |
| probability | back to summary |
|---|---|
| public double probability(double x0, double x1) For a random variable
| |
| probability | back to summary |
|---|---|
| public double probability(double x) Implements org. Doc from org. For a random variable
| |
| reseedRandomGenerator | back to summary |
|---|---|
| public void reseedRandomGenerator(long seed) Implements org. Doc from org. Reseed the random generator used to generate samples.
| |
| sample | back to summary |
|---|---|
| public double sample() Implements org. Doc from org. Generate a random value sampled from this distribution. The default implementation uses the inversion method.
| |
| sample | back to summary |
|---|---|
| public double[] sample(int sampleSize) Implements org. Doc from org. Generate a random sample from the distribution.
The default implementation generates the sample by calling
| |