powered by
rate
Samples are nonnegative integers, with a pmf given by $$ \mbox{rate}^{k} \frac{e^{-\mbox{rate}}}{k!} $$
distr_poisson(rate, validate_args = NULL)
(numeric, torch_tensor): the rate parameter
whether to validate arguments or not.
Distribution for details on the available methods.
Other distributions: distr_bernoulli(), distr_chi2(), distr_gamma(), distr_multivariate_normal(), distr_normal()
distr_bernoulli()
distr_chi2()
distr_gamma()
distr_multivariate_normal()
distr_normal()
if (torch_is_installed()) { m <- distr_poisson(torch_tensor(4)) m$sample() }
Run the code above in your browser using DataLab