bound_precision: Bound Precision

View source: R/bound.R

bound_precisionR Documentation

Bound Precision

Description

Bound Precision

Usage

bound_precision(vals)

Arguments

vals

numeric vector of values in the interval [0, 1] to be bounded within arbitrary machine precision. The most common use of this functionality is to avoid indeterminate or non-finite values after the application stats::qlogis.

Details

Bound values in the unit interval to machine precision in order to avoid numerical instability issues in downstream computation.

Value

A numeric vector of the same length as vals, where the returned values are bounded to machine precision. This is intended to avoid numerical instability issues.


nhejazi/txshift documentation built on Sept. 24, 2024, 8:43 p.m.