Summary
Generates an array of integer samples distributed by Bernoulli distribution.
Class
TRngStream
Declaration
Procedure RandomBernoulli(Dst: TMtxVec; p: double);
Description
Returns random numbers distributed according to the Bernoulli distribution. The number of samples generated is defined with the Dst.Length parameter. The result is an array of integers which can be accessed via Dst.IValues property.
| Copyright 2008 Dew Research |
http://www.dewresearch.com