Creates a Poisson distribution parameterized by rate
, the rate parameter.
rate
, the rate parameter.Samples are nonnegative integers, with a pmf given by [REMOVE_ME]
distr_poisson(rate, validate_args = NULL)
rate
: (numeric, torch_tensor): the rate parametervalidate_args
: whether to validate arguments or not.Samples are nonnegative integers, with a pmf given by
if (torch_is_installed()) { m <- distr_poisson(torch_tensor(4)) m$sample() }
Distribution for details on the available methods.
Other distributions: distr_bernoulli()
, distr_chi2()
, distr_gamma()
, distr_multivariate_normal()
, distr_normal()
Useful links