eval_pmf | R Documentation |
Access a distribution's probability mass function (pmf).
eval_pmf(distribution, at, strict = TRUE)
enframe_pmf(
...,
at,
arg_name = ".arg",
fn_prefix = "pmf",
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 pmf exists? |
arg_name |
For |
fn_prefix |
For |
sep |
When |
The evaluated probabilities
in vector form (for eval_
) and data frame
or tibble form (for enframe_
).
Other distributional representations:
eval_cdf()
,
eval_chf()
,
eval_density()
,
eval_hazard()
,
eval_odds()
,
eval_quantile()
,
eval_return()
,
eval_survival()
d <- dst_empirical(1:10)
eval_pmf(d, at = c(1, 2, 2.5))
enframe_pmf(d, at = 0:4)
eval_pmf(dst_norm(0, 1), at = -3:3, strict = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.