[R] When to set small values to 0?

Hesen Peng hesen.peng at gmail.com
Fri Oct 3 03:53:24 CEST 2008


My dear R buddies,

I've run into a problem when doing numerical computation recently. In
a program that I've been working on, I usually get a vector of real
values which are theoretically (and it's correct) supposed to decrease
until reaching zero after a given value. However, most of the value
just wander at 10^-8 scale and never shrink exactly to zero. So I
guess I should manually add a threshold to set the values to zero. But
does anyone know any choice of these thresholds? Thanks very much.

-- 
彭河森 Hesen Peng
http://hesen.peng.googlepages.com/


More information about the R-help mailing list