powered by
rstream
Sample from rstream objects a Poisson count conditional on being in [k_min, k_max] (see rbtpois()).
[k_min, k_max]
rbtpois()
rng_stream_rbtpois( size = 1, lambda = 1, k_min = 1, k_max = Inf, rng_stream = NULL )
a vector of counts (all in [k_min, k_max]) of size size
size
Integer, number of samples
Positive number, the mean of the original (untruncated) Poisson distribution
Non-negative integer, the minimum count conditioned on
Positive integer or Inf, the maximum count conditioned on
Inf
(rstream) an rstream object or NULL
NULL
rng_stream_rbtpois(10, lambda = 1, k_min = 2)
Run the code above in your browser using DataLab