poissonSim: Generate n pseudo random numbers from a Poisson distribution.

View source: R/poissonSim.R

poissonSimR Documentation

Generate n pseudo random numbers from a Poisson distribution.

Description

Generate n pseudo random numbers from a Poisson distribution.

Usage

poissonSim(n = 1, lambda = 1, seed = as.integer(Sys.time()))

Arguments

n

the number of pseudo random Poisson numbers to generate. Defaults to 1.

lambda

Shape parameter indicating the average number off events in a given time interval. Defaults to 1.

seed

Seed for pseudo random number generating algorithm. Defaults to a integer generated from the system time

Value

vector of Poisson random variants of length n

Examples

poissonSim(n =1e4, lambda=4)

donovanquimby/simulationRNG documentation built on March 19, 2022, 12:46 p.m.