RPois: Simulate random number from the Poisson distribution.

Description Usage Arguments Value

Description

Generate random integers from the Poisson distribution if possible, given integer overflow constraints. Otherwise, approximate the Poisson with the normal distribution.

Usage

1
RPois(n, lambda)

Arguments

n

number of random values to return. If length(n) > 1, the length is taken to be the number required.

lambda

vector of (non-negative) means.

Value

RPois returns random numbers from the Poisson distribution, or its normal approximation. The function will return a numeric value, rather than an integer.


google/amss documentation built on May 20, 2019, 5:05 p.m.