chi_squared object.R/chi_squared.R
density.chi_squared.RdMethod for obtaining the density (pdf) of a chi_squared object.
# S3 method for class 'chi_squared'
density(x, ...)A function that computes the pdf at point(s) t
x <- chi_squared(5)
f <- density(x)
f(5)
#> [1] 0.1220415
f(10)
#> [1] 0.02833456