rztpois {nhppp}R Documentation

Zero-truncated Poisson random samples (basic R)

Description

Sample zero-truncated Poisson random samples (basic R)

Usage

rztpois(size = 1, lambda = 1)

Arguments

size

Integer, number of samples

lambda

Positive number, the mean of the original (untruncated) Poisson distribution

Value

a vector of non zero counts of size size

Examples

rztpois(10, 1)
rztpois(10, 1:10)

[Package nhppp version 0.1.4 Index]