Skip to content

Check tail of nonparametric PMFs #752

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Improve documentation
  • Loading branch information
jamesmbaazam committed Aug 21, 2024
commit 0a52f68bd1228d1eea9521cecb9a542afa01052d
8 changes: 4 additions & 4 deletions R/checks.R
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@ check_stan_delay <- function(dist) {

#' Check that PMF tail is not sparse
#'
#' @description Checks the tail of a PMF to see if more than `span` consecutive
#' indices in the PMF are smaller than `tol`. If so, a warning is thrown.
#' @param pmf A probability mass function
#' @description Checks if the tail of a PMF vector has more than `span`
#' consecutive values smaller than `tol` and throws a warning if so.
#' @param pmf A probability mass function vector
#' @param span The number of consecutive indices in the tail to check
#' @param tol The tolerance for the tail values
#' @param tol The value which to consider the tail as sparse
#'
#' @return Called for its side effects.
#' @keywords internal
Expand Down
8 changes: 4 additions & 4 deletions man/check_sparse_pmf_tail.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading