Java org.apache.commons.math3.distribution LogNormalDistribution fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.math3.distribution LogNormalDistribution fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.math3.distribution LogNormalDistribution.

The text is from its open source code.

Field

doubleDEFAULT_INVERSE_ABSOLUTE_ACCURACY
Default inverse cumulative probability accuracy.

Constructor

LogNormalDistribution(double scale, double shape)
Create a log-normal distribution using the specified scale and shape.
LogNormalDistribution(double scale, double shape, double inverseCumAccuracy)
Create a log-normal distribution using the specified scale, shape and inverse cumulative distribution accuracy.

Method

doublecumulativeProbability(double x)
For scale m , and shape s of this distribution, the CDF is given by
  • 0 if x <= 0 ,
  • 0 if ln(x) - m < 0 and m - ln(x) > 40 * s , as in these cases the actual value is within Double.MIN_VALUE of 0,
  • 1 if ln(x) - m >= 0 and ln(x) - m > 40 * s , as in these cases the actual value is within Double.MIN_VALUE of 1,
  • 0.5 + 0.5 * erf((ln(x) - m) / (s * sqrt(2)) otherwise.
doubleinverseCumulativeProbability(final double p)
The default implementation returns
  • #getSupportLowerBound() for p = 0 ,
  • #getSupportUpperBound() for p = 1 .
doublesample()
double[]sample(int sampleSize)
The default implementation generates the sample by calling #sample() in a loop.