Method for obtaining the density (pdf) of a chi_squared object.

# S3 method for class 'chi_squared'
density(x, ...)

Arguments

x

The chi_squared object

...

Additional arguments (not used)

Value

A function that computes the pdf at point(s) t

Examples

x <- chi_squared(5)
f <- density(x)
f(5)
#> [1] 0.1220415
f(10)
#> [1] 0.02833456