apply_tolerance: Applies a threshold to all nonparametric distributions in a...

View source: R/deprecated.R

apply_toleranceR Documentation

Applies a threshold to all nonparametric distributions in a <dist_spec>

Description

[Deprecated] This function is deprecated. Use bound_dist() instead.

Usage

apply_tolerance(x, tolerance)

Arguments

x

A ⁠<dist_spec>⁠

tolerance

Numeric; the desired tolerance level. Any part of the cumulative distribution function beyond 1 minus this tolerance level is removed.

Value

A ⁠<dist_spec>⁠ where probability masses below the threshold level have been removed


epiforecasts/EpiNow2 documentation built on Dec. 10, 2024, 5:32 p.m.