StatRandom.RandomPoisson Method

void RandomPoisson(Double lambda, TMtxVecInt results, Int32 Seed)

Poisson distribution random generator.

#NameTypeDescription
1lambdaDoublescalar
2resultsTMtxVecIntsource TVecInt or TMtxInt
3SeedInt32

Result: stored in self (calling object)

Remarks:

This routine generates Result.Length pseudo random numbers, using the Poisson distribution with parameter lambda. 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()
    {
        VectorInt r = new VectorInt(2000);
        StatRandom.RandomPoisson(2.31,r,-1);
    }
}