View source: R/distributions-chi2.R
distr_chi2 | R Documentation |
df
.
This is exactly equivalent to distr_gamma(alpha=0.5*df, beta=0.5)
Creates a Chi2 distribution parameterized by shape parameter df
.
This is exactly equivalent to distr_gamma(alpha=0.5*df, beta=0.5)
distr_chi2(df, validate_args = NULL)
df |
(float or torch_tensor): shape parameter of the distribution |
validate_args |
whether to validate arguments or not. |
Distribution for details on the available methods.
Other distributions:
distr_bernoulli()
,
distr_gamma()
,
distr_multivariate_normal()
,
distr_normal()
,
distr_poisson()
if (torch_is_installed()) {
m <- distr_chi2(torch_tensor(1.0))
m$sample() # Chi2 distributed with shape df=1
torch_tensor(0.1046)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.