check_sparse_pmf_tail | R Documentation |
Checks if the tail of a PMF vector has more than span
consecutive values smaller than tol
and throws a warning if so.
check_sparse_pmf_tail(pmf, span = 5, tol = 1e-06)
pmf |
A probability mass function vector |
span |
The number of consecutive indices in the tail to check |
tol |
The value which to consider the tail as sparse |
Called for its side effects.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.