Density of the chi-squared distribution. Equivalent to R's dchisq(x, df, ncp = 0, log = FALSE).
dchisq(x, df, ncp = 0, log = FALSE)
If ncp is omitted the central distribution is used; otherwise the noncentral chi-squared distribution.
ncp
Value(s) at which to evaluate: a number, number[] or Float64Array. The result has the same shape.
number[]
Float64Array
Degrees of freedom.
ncp (see NoncentralOption) and log (see DensityOptions).
log
The density (or log density).
dchisq(1, 3); // 0.24197072451914337dchisq(1, 3, { ncp: 2 }); // 0.12180056753215114 Copy
dchisq(1, 3); // 0.24197072451914337dchisq(1, 3, { ncp: 2 }); // 0.12180056753215114
Density of the chi-squared distribution. Equivalent to R's
dchisq(x, df, ncp = 0, log = FALSE).If
ncpis omitted the central distribution is used; otherwise the noncentral chi-squared distribution.