Parameters:
X is log-normally distributed if its natural logarithm log(X)
is normally distributed. The probability distribution function of X
is given by (for x > 0)
exp(-0.5 * ((ln(x) - m) / s)^2) / (s * sqrt(2 * pi) * x)
m is the scale parameter: this is the mean of the
normally distributed natural logarithm of this distribution,s is the shape parameter: this is the standard
deviation of the normally distributed natural logarithm of this
distribution.
| Modifier and Type | Field and Description |
|---|---|
| public static final double | DEFAULT_INVERSE_ABSOLUTE_ACCURACY
Default inverse cumulative probability accuracy. |
| private final double | logShapePlusHalfLog2Pi
The value of |
| private final double | scale
The scale parameter of this distribution. |
| private static final long | serialVersionUID
Hides org. |
| private final double | shape
The shape parameter of this distribution. |
| private final double | solverAbsoluteAccuracy
Hides org. |
| private static final double | SQRT2
√(2) |
| private static final double | SQRT2PI
√(2 π) |
| Access | Constructor and Description |
|---|---|
| public | LogNormalDistribution()
Create a log-normal distribution, where the mean and standard deviation
of the |
| public | LogNormalDistribution(double
the scale parameter of this distribution scale, double the shape parameter of this distribution shape)Create a log-normal distribution using the specified scale and shape. |
| public | LogNormalDistribution(double
the scale parameter of this distribution scale, double the shape parameter of this distribution shape, double Inverse cumulative probability accuracy. inverseCumAccuracy)Create a log-normal distribution using the specified scale, shape and inverse cumulative distribution accuracy. |
| public | LogNormalDistribution(RandomGenerator
Random number generator. rng, double Scale parameter of this distribution. scale, double Shape parameter of this distribution. shape)Creates a log-normal distribution. |
| public | LogNormalDistribution(RandomGenerator
Random number generator. rng, double Scale parameter of this distribution. scale, double Shape parameter of this distribution. shape, double Inverse cumulative probability accuracy. inverseCumAccuracy)Creates a log-normal 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 | cumulativeProbability(double
the exclusive lower bound x0, double the inclusive upper bound x1)Overrides org. Implements org.
Deprecated
See
RealDistribution#cumulativeProbability(double, double)
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 | |
| public double | |
| protected double | getSolverAbsoluteAccuracy()
Overrides org. Returns the solver absolute accuracy for inverse cumulative computation. |
| public double | Returns: lower bound of the support (always 0)Implements org. Access the lower bound of the support. |
| public double | Returns: upper bound of the support (alwaysDouble.POSITIVE_INFINITY)Implements org. Access the upper bound of the support. |
| 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 | 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 |
| public double | probability(double
Lower bound (excluded). x0, double Upper bound (included). x1)Overrides org. For a random variable |
| 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 Default inverse cumulative probability accuracy. | |
| logShapePlusHalfLog2Pi | back to summary |
|---|---|
| private final double logShapePlusHalfLog2Pi The value of | |
| scale | back to summary |
|---|---|
| private final double scale The scale parameter of this distribution. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. Serializable version identifier. | |
| shape | back to summary |
|---|---|
| private final double shape The shape parameter of this distribution. | |
| solverAbsoluteAccuracy | back to summary |
|---|---|
| private final double solverAbsoluteAccuracy Hides org. Inverse cumulative probability accuracy. | |
| SQRT2 | back to summary |
|---|---|
| private static final double SQRT2 √(2) | |
| SQRT2PI | back to summary |
|---|---|
| private static final double SQRT2PI √(2 π) | |
| LogNormalDistribution | back to summary |
|---|---|
| public LogNormalDistribution() Create a log-normal distribution, where the mean and standard deviation
of the Note this constructor will implicitly create an instance of
| |
| LogNormalDistribution | back to summary |
|---|---|
| public LogNormalDistribution(double scale, double shape) throws NotStrictlyPositiveException Create a log-normal distribution using the specified scale and shape. Note this constructor will implicitly create an instance of
| |
| LogNormalDistribution | back to summary |
|---|---|
| public LogNormalDistribution(double scale, double shape, double inverseCumAccuracy) throws NotStrictlyPositiveException Create a log-normal distribution using the specified scale, shape and inverse cumulative distribution accuracy. Note this constructor will implicitly create an instance of
| |
| LogNormalDistribution | back to summary |
|---|---|
| public LogNormalDistribution(RandomGenerator rng, double scale, double shape) throws NotStrictlyPositiveException Creates a log-normal distribution.
| |
| LogNormalDistribution | back to summary |
|---|---|
| public LogNormalDistribution(RandomGenerator rng, double scale, double shape, double inverseCumAccuracy) throws NotStrictlyPositiveException Creates a log-normal distribution.
| |
| cumulativeProbability | back to summary |
|---|---|
| public double cumulativeProbability(double x) Implements org. Doc from org. For a random variable
| |
| cumulativeProbability | back to summary |
|---|---|
| public double cumulativeProbability(double x0, double x1) throws NumberIsTooLargeException Overrides org. Implements org. Doc from org. Deprecated 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 scale
| |
| 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 scale
| |
| getScale | back to summary |
|---|---|
| public double getScale() Returns the scale parameter of this distribution.
| |
| getShape | back to summary |
|---|---|
| public double getShape() Returns the shape parameter of this distribution.
| |
| getSolverAbsoluteAccuracy | back to summary |
|---|---|
| protected double getSolverAbsoluteAccuracy() Overrides org. Doc from org. Returns the solver absolute accuracy for inverse cumulative computation. You can override this method in order to use a Brent solver with an absolute accuracy different from the default.
| |
| 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
| |
| 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
| |
| 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
| |
| probability | back to summary |
|---|---|
| public double probability(double x0, double x1) throws NumberIsTooLargeException Overrides org. Doc from org. For a random variable
| |
| 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.
| |