| Modifier and Type | Field and Description |
|---|---|
| private final double | c
Scale parameter. |
| private final double | halfC
Half of c (for calculations). |
| private final double | mu
Location parameter. |
| private static final long | serialVersionUID
Hides org. |
| Access | Constructor and Description |
|---|---|
| public | LevyDistribution(final double
location parameter mu, final double scale parameter c)Build a new instance. |
| public | LevyDistribution(final RandomGenerator
random generator to be used for sampling rng, final double location mu, final double scale parameter c)Creates a LevyDistribution. |
| Modifier and Type | Method and Description |
|---|---|
| public double | cumulativeProbability(final double
the point at which the CDF is evaluated x)Implements org. For a random variable |
| public double | density(final 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 | Returns: location parameter of the distributionGet the location parameter of the distribution. |
| 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 | |
| public double | getSupportLowerBound()
Implements org. Access the lower bound of the support. |
| public double | getSupportUpperBound()
Implements 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 | isSupportConnected()
Implements 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 | logDensity(double
the point at which the PDF is evaluated x)Overrides org. Returns the natural logarithm of the probability density function (PDF) of this distribution
evaluated at the specified point |
| c | back to summary |
|---|---|
| private final double c Scale parameter. | |
| halfC | back to summary |
|---|---|
| private final double halfC Half of c (for calculations). | |
| mu | back to summary |
|---|---|
| private final double mu Location parameter. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. Serializable UID. | |
| LevyDistribution | back to summary |
|---|---|
| public LevyDistribution(final double mu, final double c) Build a new instance. Note this constructor will implicitly create an instance of
| |
| LevyDistribution | back to summary |
|---|---|
| public LevyDistribution(final RandomGenerator rng, final double mu, final double c) Creates a LevyDistribution.
| |
| cumulativeProbability | back to summary |
|---|---|
| public double cumulativeProbability(final double x) Implements org. Doc from org. For a random variable From Wikipedia: the cumulative distribution function is f(x; u, c) = erfc (√ (c / 2 (x - u )))
| |
| density | back to summary |
|---|---|
| public double density(final double x) Implements org. Doc from org. Returns the probability density function (PDF) of this distribution
evaluated at the specified point From Wikipedia: The probability density function of the Lévy distribution over the domain is f(x; μ, c) = √(c / 2π) * e-c / 2 (x - μ) / (x - μ)3/2
For this distribution,
| |
| getLocation | back to summary |
|---|---|
| public double getLocation() Get the location parameter of the distribution.
| |
| 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.
| |
| 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.
| |
| getScale | back to summary |
|---|---|
| public double getScale() Get the scale parameter of the distribution.
| |
| 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.
| |
| 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
| |
| logDensity | back to summary |
|---|---|
| public double logDensity(double x) Overrides org. Doc from org. Returns the natural logarithm of the probability density function (PDF) of this distribution
evaluated at the specified point
| |