eval_density | R Documentation |
Access a distribution's probability density function (pdf).
eval_density(distribution, at, strict = TRUE)
enframe_density(
...,
at,
arg_name = ".arg",
fn_prefix = "density",
sep = "_",
strict = TRUE
)
distribution , ... |
A distribution, or possibly multiple
distributions in the case of |
at |
Vector of values to evaluate the cdf at. Must be named when using
in |
strict |
Only evaluate when the density exists? |
arg_name |
For |
fn_prefix |
For |
sep |
When |
The evaluated density in vector form (for eval_
) and data frame
or tibble form (for enframe_
).
Other distributional representations:
eval_cdf()
,
eval_chf()
,
eval_hazard()
,
eval_odds()
,
eval_pmf()
,
eval_quantile()
,
eval_return()
,
eval_survival()
d <- dst_unif(0, 4)
eval_density(d, at = 0:4)
enframe_density(d, at = 0:4)
eval_density(dst_pois(1), at = 0:4, strict = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.