| Modifier and Type | Field and Description |
|---|---|
| public static final double | DEFAULT_INVERSE_ABSOLUTE_ACCURACY
Deprecated
as of 3.2 not used anymore, will be removed in 4.0
Default inverse cumulative probability accuracy.
|
| private final double | lower
Lower bound of this distribution (inclusive). |
| private static final long | serialVersionUID
Hides org. |
| private final double | upper
Upper bound of this distribution (exclusive). |
| Access | Constructor and Description |
|---|---|
| public | UniformRealDistribution()
Create a standard uniform real distribution with lower bound (inclusive) equal to zero and upper bound (exclusive) equal to one. |
| public | UniformRealDistribution(double
Lower bound of this distribution (inclusive). lower, double Upper bound of this distribution (exclusive). upper)Create a uniform real distribution using the given lower and upper bounds. |
| public | UniformRealDistribution(double
Lower bound of this distribution (inclusive). lower, double Upper bound of this distribution (exclusive). upper, double Inverse cumulative probability accuracy. inverseCumAccuracy)
Deprecated
as of 3.2, inverse CDF is now calculated analytically, use
UniformRealDistribution(double, double) instead.
Create a uniform distribution. |
| public | UniformRealDistribution(RandomGenerator
Random number generator. rng, double Lower bound of this distribution (inclusive). lower, double Upper bound of this distribution (exclusive). upper, double Inverse cumulative probability accuracy. inverseCumAccuracy)
Deprecated
as of 3.2, inverse CDF is now calculated analytically, use
UniformRealDistribution(RandomGenerator, double, double)
instead.
Creates a uniform distribution. |
| public | UniformRealDistribution(RandomGenerator
Random number generator. rng, double Lower bound of this distribution (inclusive). lower, double Upper bound of this distribution (exclusive). upper)Creates a uniform distribution. |
| Modifier and Type | Method and Description |
|---|---|
| public double | cumulativeProbability(double
the point at which the CDF is evaluated x)Implements org. For a random variable |
| public double | density(double
the point at which the PDF is evaluated x)Implements org. Returns the probability density function (PDF) of this distribution
evaluated at the specified point |
| 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: lower bound of the supportImplements org. Access the lower bound of the support. |
| public double | Returns: upper bound of the supportImplements org. Access the upper bound of the support. |
| public double | inverseCumulativeProbability(final 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 values between the lower and upper bound of the support are included in the support. |
| public boolean | isSupportLowerBoundInclusive()
Implements org. Whether or not the lower bound of support is in the domain of the density function. |
| public boolean | isSupportUpperBoundInclusive()
Implements org. Whether or not the upper bound of support is in the domain of the density function. |
| public double | sample()
Overrides org. Implements org. Generate a random value sampled from this distribution. |
| DEFAULT_INVERSE_ABSOLUTE_ACCURACY | back to summary |
|---|---|
| public static final double DEFAULT_INVERSE_ABSOLUTE_ACCURACY
Deprecated as of 3.2 not used anymore, will be removed in 4.0 Default inverse cumulative probability accuracy. | |
| lower | back to summary |
|---|---|
| private final double lower Lower bound of this distribution (inclusive). | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. Serializable version identifier. | |
| upper | back to summary |
|---|---|
| private final double upper Upper bound of this distribution (exclusive). | |
| UniformRealDistribution | back to summary |
|---|---|
| public UniformRealDistribution() Create a standard uniform real distribution with lower bound (inclusive) equal to zero and upper bound (exclusive) equal to one. Note this constructor will implicitly create an instance of
| |
| UniformRealDistribution | back to summary |
|---|---|
| public UniformRealDistribution(double lower, double upper) throws NumberIsTooLargeException Create a uniform real distribution using the given lower and upper bounds. Note this constructor will implicitly create an instance of
| |
| UniformRealDistribution | back to summary |
|---|---|
| public UniformRealDistribution(double lower, double upper, double inverseCumAccuracy) throws NumberIsTooLargeException
Deprecated as of 3.2, inverse CDF is now calculated analytically, use
Create a uniform distribution.
| |
| UniformRealDistribution | back to summary |
|---|---|
| public UniformRealDistribution(RandomGenerator rng, double lower, double upper, double inverseCumAccuracy)
Deprecated as of 3.2, inverse CDF is now calculated analytically, use
Creates a uniform distribution.
| |
| UniformRealDistribution | back to summary |
|---|---|
| public UniformRealDistribution(RandomGenerator rng, double lower, double upper) throws NumberIsTooLargeException Creates a uniform distribution.
| |
| cumulativeProbability | back to summary |
|---|---|
| public double cumulativeProbability(double x) Implements org. Doc from org. For a random variable
| |
| density | back to summary |
|---|---|
| public double density(double x) Implements org. Doc from org. Returns the probability density function (PDF) of this distribution
evaluated at the specified point
| |
| 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 lower bound
| |
| 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 lower bound
| |
| getSupportLowerBound | back to summary |
|---|---|
| public double 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 double getSupportUpperBound() Implements org. Doc from org. Access the upper bound of the support. This method must return the same
value as
| |
| inverseCumulativeProbability | back to summary |
|---|---|
| public double inverseCumulativeProbability(final double p) throws OutOfRangeException Overrides org. Implements org. Doc from org. Computes the quantile function of this distribution. For a random
variable
| |
| 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 values between the lower and upper bound of the support are included in the support. The support of this distribution is connected.
| |
| isSupportLowerBoundInclusive | back to summary |
|---|---|
| public boolean isSupportLowerBoundInclusive() Implements org. Doc from org. Whether or not the lower bound of support is in the domain of the density
function. Returns true iff
| |
| isSupportUpperBoundInclusive | back to summary |
|---|---|
| public boolean isSupportUpperBoundInclusive() Implements org. Doc from org. Whether or not the upper bound of support is in the domain of the density
function. Returns true iff
| |
| sample | back to summary |
|---|---|
| public double sample() Overrides org. Implements org. Doc from org. Generate a random value sampled from this distribution. The default implementation uses the inversion method.
| |