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.3179.0 (4.8.3179.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 propertyMean
(Overrides NormalDistributionMean)
Public propertyStdev
(Overrides NormalDistributionStdev)
Top
Methods
 NameDescription
Public methodCDF
(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 methodInitialize 
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodNextDouble
(Overrides NormalDistributionNextDouble)
Public methodPDF
(Overrides NormalDistributionPDF(Double))
Public methodQuantile
(Overrides NormalDistributionQuantile(Double))
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Fields
 NameDescription
Protected fieldcached
(Inherited from NormalDistribution)
Protected fieldcacheval
(Inherited from NormalDistribution)
Protected fieldgeneratorPointer to generator.
(Inherited from ProbabilityDistribution)
Protected fieldm_log 
Protected fieldmu
(Inherited from NormalDistribution)
Protected fields_log 
Protected fieldscale
(Inherited from NormalDistribution)
Protected fieldsigma
(Inherited from NormalDistribution)
Top
Remarks
C#
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