procedure RandomPoisson(const lambda: Double; const results: TMtxVecInt; Seed: Integer);
Poisson distribution random generator.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | lambda | Double | |
| 2 | results | TMtxVecInt | |
| 3 | Seed | Integer |
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
Uses MtxExprInt, StatRandom;
procedure Example;
var Res: VectorInt;
begin
Res.Size(2000);
RandomPoisson(2.31, Res);
end;