Skip to main content

NDArray::poisson

public static function poisson(array $size, float $lam = 1.0): NDArray;

Generates an array of random integers from a Poisson distribution. The Poisson distribution models the number of events occurring in fixed intervals of time or space, given the average rate of occurrence.