| Modifier and Type | Field and Description |
|---|---|
| private final double | log1mProbabilityOfSuccess
|
| private final double | logProbabilityOfSuccess
|
| private final double | probabilityOfSuccess
The probability of success. |
| private static final long | serialVersionUID
Hides org. |
| Access | Constructor and Description |
|---|---|
| public | GeometricDistribution(double
probability of success. p)Create a geometric distribution with the given probability of success. |
| public | GeometricDistribution(RandomGenerator
Random number generator. rng, double Probability of success. p)Creates a geometric distribution. |
| Modifier and Type | Method and Description |
|---|---|
| public double | cumulativeProbability(int
the point at which the CDF is evaluated x)Implements org. For a random variable |
| public double | getNumericalMean()
Implements org. Use this method to get the numerical value of the mean of this distribution. |
| public double | getNumericalVariance()
Implements org. Use this method to get the numerical value of the variance of this distribution. |
| public double | Returns: the probability of success.Access the probability of success for this distribution. |
| public int | Returns: lower bound of the support (always 0)Implements org. Access the lower bound of the support. |
| public int | Returns: upper bound of the support (always Integer.MAX_VALUE)Implements org. Access the upper bound of the support. |
| public int | inverseCumulativeProbability(double
the cumulative probability p)Overrides org. Implements org. Computes the quantile function of this distribution. |
| public boolean | Returns: trueImplements org. 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. |
| public double | logProbability(int
the point at which the PMF is evaluated x)Overrides org. For a random variable |
| public double | probability(int
the point at which the PMF is evaluated x)Implements org. For a random variable |
| log1mProbabilityOfSuccess | back to summary |
|---|---|
| private final double log1mProbabilityOfSuccess
| |
| logProbabilityOfSuccess | back to summary |
|---|---|
| private final double logProbabilityOfSuccess
| |
| probabilityOfSuccess | back to summary |
|---|---|
| private final double probabilityOfSuccess The probability of success. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. Serializable version identifier. | |
| GeometricDistribution | back to summary |
|---|---|
| public GeometricDistribution(double p) Create a geometric distribution with the given probability of success. Note this constructor will implicitly create an instance of
| |
| GeometricDistribution | back to summary |
|---|---|
| public GeometricDistribution(RandomGenerator rng, double p) Creates a geometric distribution.
| |
| cumulativeProbability | back to summary |
|---|---|
| public double cumulativeProbability(int x) Implements org. Doc from org. For a random variable
| |
| getNumericalMean | back to summary |
|---|---|
| public double getNumericalMean() Implements org. Doc from org. Use this method to get the numerical value of the mean of this
distribution.
For probability parameter
| |
| getNumericalVariance | back to summary |
|---|---|
| public double getNumericalVariance() Implements org. Doc from org. Use this method to get the numerical value of the variance of this
distribution.
For probability parameter
| |
| getProbabilityOfSuccess | back to summary |
|---|---|
| public double getProbabilityOfSuccess() Access the probability of success for this distribution.
| |
| getSupportLowerBound | back to summary |
|---|---|
| public int getSupportLowerBound() Implements org. Doc from org. Access the lower bound of the support. This method must return the same
value as
| |
| getSupportUpperBound | back to summary |
|---|---|
| public int getSupportUpperBound() Implements org. Doc from org. Access the upper bound of the support. This method must return the same
value as
Integer.MAX_VALUE).
| |
| inverseCumulativeProbability | back to summary |
|---|---|
| public int inverseCumulativeProbability(double p) throws OutOfRangeException Overrides org. 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
| |
| isSupportConnected | back to summary |
|---|---|
| public boolean isSupportConnected() Implements org. Doc from org. 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. The support of this distribution is connected.
| |
| logProbability | back to summary |
|---|---|
| public double logProbability(int x) Overrides org. Doc from org. For a random variable
The default implementation simply computes the logarithm of
| |
| probability | back to summary |
|---|---|
| public double probability(int x) Implements org. Doc from org. For a random variable
| |