code_zero: Optim loses NaN

View source: R/RcppExports.R

code_zeroR Documentation

Optim loses NaN

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

code_zero(theta)

Arguments

theta

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

Value

A vec that contains safe theta values.


SMAC-Group/simts documentation built on Sept. 4, 2023, 5:25 a.m.