sample_parity_poisson: Sample poisson conditional on its parity

Description Usage Arguments Value

View source: R/crt_helpers.r

Description

Sample a poisson conditional on it being even or odd This function is only computationally efficient when lambda is small.

Usage

1
sample_parity_poisson(lambda, parity = "even")

Arguments

lambda

Poisson parameter.

parity

Either "even" or "odd".

Value

Scalar, a sample from the poisson conditional on the specified parity


stephenbates19/digitaltwins documentation built on Feb. 25, 2020, 12:41 a.m.