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.
vec that contains safe theta values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.