Creates a Poisson distribution parameterized by rate, the rate parameter.
Source: R/distributions-poisson.R
distr_poisson.RdSamples are nonnegative integers, with a pmf given by
See also
Distribution for details on the available methods.
Other distributions:
distr_bernoulli(),
distr_chi2(),
distr_gamma(),
distr_multivariate_normal(),
distr_normal()
Examples
if (torch_is_installed()) {
m <- distr_poisson(torch_tensor(4))
m$sample()
}
#> torch_tensor
#> 7
#> [ CPUFloatType{1} ]