View source: R/distributions-gamma.R
distr_gamma | R Documentation |
concentration
and rate
.Creates a Gamma distribution parameterized by shape concentration
and rate
.
distr_gamma(concentration, rate, validate_args = NULL)
concentration |
(float or Tensor): shape parameter of the distribution (often referred to as alpha) |
rate |
(float or Tensor): rate = 1 / scale of the distribution (often referred to as beta) |
validate_args |
whether to validate arguments or not. |
Distribution for details on the available methods.
Other distributions:
distr_bernoulli()
,
distr_chi2()
,
distr_multivariate_normal()
,
distr_normal()
,
distr_poisson()
if (torch_is_installed()) {
m <- distr_gamma(torch_tensor(1.0), torch_tensor(1.0))
m$sample() # Gamma distributed with concentration=1 and rate=1
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.