Generate 2000 random numbers by using the Poisson distribution with parameter lambda=2.31.
Uses MtxExprInt, StatRandom; procedure Example; var Res: VectorInt; begin Res.Size(2000); RandomPoisson(2.31, Res); end;
#include "MtxExprInt.hpp" #include "StatRandom.hpp" void __fastcall Example() { VectorInt Res; Res.Size(2000,); RandomPoisson(2.31, Res,-1); }
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
|