Learn R Programming

Rfast (version 1.3)

Random generation for the Poisson distribution with parameter lambda: Random generation for the Poisson distribution with parameter lambda

Description

Random generation for the Poisson distribution with parameter lambda.

Usage

Rpois(n,mu)

Arguments

n
The size of the numbers you want for return.
mu
Lambda parameter.

Value

A row vector which is been initialized with poisson's numbers.

Details

The function is written in C++ and this is why it is very fast.

See Also

Rnorm,Runif

Examples

Run this code
Rpois(1000,10)

Run the code above in your browser using DataLab