code_zero: Optim loses NaN

Description Usage Arguments Value

View source: R/RcppExports.R

Description

This function takes numbers that are very small and sets them to the minimal tolerance for C++. Doing this prevents NaN from entering the optim routine.

Usage

1
code_zero(theta)

Arguments

theta

A vec that contains estimated GMWM theta values (untransformed).

Value

A vec that contains safe theta values.


SMAC-Group/gmwm documentation built on Sept. 11, 2021, 10:06 a.m.