Click or drag to resize

LogNormalDistribution Class

Generates log-normal distributed random numbers.
Inheritance Hierarchy
SystemObject
  Altaxo.Calc.Probability.OldProbabilityDistribution
    Altaxo.Calc.Probability.OldNormalDistribution
      Altaxo.Calc.Probability.OldLogNormalDistribution

Namespace: Altaxo.Calc.Probability.Old
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public class LogNormalDistribution : NormalDistribution

The LogNormalDistribution type exposes the following members.

Constructors
 NameDescription
Protected methodLogNormalDistributionInitializes a new instance of the LogNormalDistribution class.
Public methodLogNormalDistribution(Double, Double)Initializes a new instance of the LogNormalDistribution class.
Public methodLogNormalDistribution(Double, Double, RandomGenerator)Initializes a new instance of the LogNormalDistribution class.
Top
Properties
 NameDescription
Public propertyGeneratorReturns the random generator used by the distribution to generate the random values.
(Inherited from ProbabilityDistribution)
Public propertyMeanGets the mean of the distribution.
(Overrides NormalDistributionMean)
Public propertyStdevGets the standard deviation of the distribution.
(Overrides NormalDistributionStdev)
Top
Methods
 NameDescription
Public methodCDF Gives the cumulative probability at x.
(Overrides NormalDistributionCDF(Double))
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodInitializeInitializes the parameters of the log-normal distribution.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodNextDouble Generates a random value distributed according to the distribution.
(Overrides NormalDistributionNextDouble)
Public methodPDF Gives the probability density at x.
(Overrides NormalDistributionPDF(Double))
Public methodQuantile Gives the pth quantile of the distribution.
(Overrides NormalDistributionQuantile(Double))
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Fields
 NameDescription
Protected fieldcached Cached flag indicating whether a value is available in the Box-Muller cache.
(Inherited from NormalDistribution)
Protected fieldcacheval Cached parameters and coefficients used by the normal distribution implementation.
(Inherited from NormalDistribution)
Protected fieldgeneratorPointer to generator.
(Inherited from ProbabilityDistribution)
Protected fieldm_log Cached logarithmic mean and standard deviation.
Protected fieldmu Cached parameters and coefficients used by the normal distribution implementation.
(Inherited from NormalDistribution)
Protected fields_log Cached logarithmic mean and standard deviation.
Protected fieldscale Cached parameters and coefficients used by the normal distribution implementation.
(Inherited from NormalDistribution)
Protected fieldsigma Cached parameters and coefficients used by the normal distribution implementation.
(Inherited from NormalDistribution)
Top
Remarks
Return log-normal distributed random deviates with given mean and standard deviation stdev according to the density function: 2 1 (ln x - m) p (x) dx = -------------- exp( - ------------ ) dx for x > 0 m,s sqrt(2 pi x) s 2 2 s = 0 otherwise where m and s are related to the arguments mean and stdev by: 2 mean m = ln ( --------------------- ) 2 2 sqrt( stdev + mean ) 2 2 stdev + mean s = sqrt( ln( -------------- ) ) 2 mean
See Also