void RandomPoisson(Double lambda, TMtxVecInt results, Int32 Seed)
Poisson distribution random generator.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | lambda | Double | scalar |
| 2 | results | TMtxVecInt | source TVecInt or TMtxInt |
| 3 | Seed | Int32 |
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);
}
}