| Modifier and Type | Method and Description |
|---|---|
| public double | Returns: the probability that a random variable with this distribution takes a value less than or equal toxthe point at which the CDF is evaluated x)For a random variable |
| public double | Returns: the probability that a random variable with this distribution will take a value betweenx0 and x1,
excluding the lower and including the upper endpointthe exclusive lower bound x0, int the inclusive upper bound x1)For a random variable |
| public double | Returns: the mean orDouble.NaN if it is not definedUse this method to get the numerical value of the mean of this distribution. |
| public double | Returns: the variance (possiblyDouble.POSITIVE_INFINITY or
Double.NaN if it is not defined)Use this method to get the numerical value of the variance of this distribution. |
| public int | Returns: lower bound of the support (Integer.MIN_VALUE
for negative infinity)Access the lower bound of the support. |
| public int | Returns: upper bound of the support (Integer.MAX_VALUE
for positive infinity)Access the upper bound of the support. |
| public int | Returns: the smallestp-quantile of this distribution
(largest 0-quantile for p = 0)the cumulative probability p)Computes the quantile function of this distribution. |
| public boolean | Returns: whether the support is connected or notUse this method to get information about whether the support is connected, i.e. whether all integers between the lower and upper bound of the support are included in the support. |
| public double | Returns: the value of the probability mass function atxthe point at which the PMF is evaluated x)For a random variable |
| public void | |
| public int | |
| public int[] | Returns: an array representing the random samplethe number of random values to generate sampleSize)Generate a random sample from the distribution. |
| cumulativeProbability | back to summary |
|---|---|
| public double cumulativeProbability(int x) For a random variable
| |
| cumulativeProbability | back to summary |
|---|---|
| public double cumulativeProbability(int x0, int x1) throws NumberIsTooLargeException For a random variable
| |
| getNumericalMean | back to summary |
|---|---|
| public double getNumericalMean() Use this method to get the numerical value of the mean of this distribution.
| |
| getNumericalVariance | back to summary |
|---|---|
| public double getNumericalVariance() Use this method to get the numerical value of the variance of this distribution.
| |
| getSupportLowerBound | back to summary |
|---|---|
| public int getSupportLowerBound() Access the lower bound of the support. This method must return the same
value as
| |
| getSupportUpperBound | back to summary |
|---|---|
| public int getSupportUpperBound() Access the upper bound of the support. This method must return the same
value as
| |
| inverseCumulativeProbability | back to summary |
|---|---|
| public int inverseCumulativeProbability(double p) throws OutOfRangeException Computes the quantile function of this distribution.
For a random variable
int,
then Integer.MIN_VALUE or Integer.MAX_VALUE is returned.
| |
| isSupportConnected | back to summary |
|---|---|
| public boolean isSupportConnected() Use this method to get information about whether the support is connected, i.e. whether all integers between the lower and upper bound of the support are included in the support.
| |
| probability | back to summary |
|---|---|
| public double probability(int x) For a random variable
| |
| reseedRandomGenerator | back to summary |
|---|---|
| public void reseedRandomGenerator(long seed) Reseed the random generator used to generate samples.
| |
| sample | back to summary |
|---|---|
| public int sample() Generate a random value sampled from this distribution.
| |
| sample | back to summary |
|---|---|
| public int[] sample(int sampleSize) Generate a random sample from the distribution.
| |