apply_default_tolerance: Apply default tolerance to a <dist_spec> if it is...

View source: R/opts.R

apply_default_toleranceR Documentation

Apply default tolerance to a <dist_spec> if it is unconstrained

Description

Apply default tolerance to a <dist_spec> if it is unconstrained

Usage

apply_default_tolerance(dist, default_tolerance, tolerance_set)

Arguments

dist

A <dist_spec>

default_tolerance

Numeric; default tolerance to be used if an unconstrained distribution is passed as dist. If dist is already constrained by having a maximum or tolerance this is ignored.

tolerance_set

Logical; whether the default tolerance has been set by the user; if yes and dist is constrained a warning is issued

Value

A <dist_spec> with the default tolerance set if previously not constrained


epiforecasts/EpiNow2 documentation built on Aug. 15, 2024, 8:12 a.m.