| Modifier and Type | Field and Description |
|---|---|
| protected final RandomGenerator | random
RNG instance used to generate samples from the distribution. |
| protected final 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 |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private double | Returns: the cumulative probabilityinput value argument)Computes the cumulative probability function and checks for |
| public double | cumulativeProbability(int
the exclusive lower bound x0, int the inclusive upper bound x1)Implements org. For a random variable |
| public int | 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 mass function atxthe point at which the PMF is evaluated x)For a random variable |
| public void | reseedRandomGenerator(long
the new seed seed)Implements org. Reseed the random generator used to generate samples. |
| public int | sample()
Implements org. Generate a random value sampled from this distribution. |
| public int[] | sample(int
the number of random values to generate sampleSize)Implements org. Generate a random sample from the distribution. |
| protected int | Returns: the smallestp-quantile of this distributionthe cumulative probability p, int a value satisfying lower, int cumulativeProbability(lower) < pa value satisfying upper)p <= cumulativeProbability(upper)This is a utility function used by |
| random | back to summary |
|---|---|
| protected final RandomGenerator random RNG instance used to generate samples from the distribution.
| |
| randomData | back to summary |
|---|---|
| protected final 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 | |
| AbstractIntegerDistribution | back to summary |
|---|---|
| protected AbstractIntegerDistribution()
Deprecated As of 3.1, to be removed in 4.0. Please use
| |
| AbstractIntegerDistribution | back to summary |
|---|---|
protected AbstractIntegerDistribution(RandomGenerator rng)
| |
| checkedCumulativeProbability | back to summary |
|---|---|
| private double checkedCumulativeProbability(int argument) throws MathInternalError Computes the cumulative probability function and checks for
| |
| cumulativeProbability | back to summary |
|---|---|
| public double cumulativeProbability(int x0, int x1) throws NumberIsTooLargeException Implements org. Doc from org. For a random variable
| |
| inverseCumulativeProbability | back to summary |
|---|---|
| public int inverseCumulativeProbability(final double p) throws OutOfRangeException Implements org. Doc from org. Computes the quantile function of this distribution.
For a random variable
int,
then Integer.MIN_VALUE or Integer.MAX_VALUE is returned.
The default implementation returns
| |
| logProbability | back to summary |
|---|---|
| public double logProbability(int x) For a random variable
The default implementation simply computes the logarithm of
| |
| 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 int 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 int[] sample(int sampleSize) Implements org. Doc from org. Generate a random sample from the distribution.
The default implementation generates the sample by calling
| |
| solveInverseCumulativeProbability | back to summary |
|---|---|
| protected int solveInverseCumulativeProbability(final double p, int lower, int upper) This is a utility function used by
| |