StatRandom.RandomLogNormal Method

void RandomLogNormal(Double mu, Double sigma, TDenseMtxVec results, Int32 Seed)

Lognormal distribution random generator.

#NameTypeDescription
1muDoublescalar
2sigmaDoublescalar
3resultsTDenseMtxVecsource TVec or TMtx
4SeedInt32

Result: stored in self (calling object)

Remarks:

This routine generates Result.Length pseudo random numbers, using the lognormal distribution with parameters mu and sigma. The random numbers are stored in the Results vector. An exception is raised if Result vector is complex.

Examples
using Dew.Math;
using Dew.Stats.Units;
namespace Dew.Examples
{
    private void Example()
    {
        Vector r = new Vector(2000,false);
        StatRandom.RandomLogNormal(3.0, 2.4, r, -1);
    }
}