PeterO.RandomGenerator.LogNormal C# (CSharp) Méthode

LogNormal() public méthode

Generates a logarithmic normally-distributed number with the given mean and standard deviation.
public LogNormal ( double mean, double sd ) : double
mean double The desired mean.
sd double Standard deviation.
Résultat double
        public double LogNormal(double mean, double sd)
        {
            return Math.Exp((this.Normal() * sd) + mean);
        }