[Date Index] [Thread Index] [Author Index]
Re: Setting Negatives to Zero
On Oct 30, 1:38 am, "Kevin J. McCann" <Kevin.McC... at umbc.edu> wrote: > I have a very large data set (64000 x 583) in which negative values > indicate "no data", unfortunately these negatives are not all the same. > I would like to efficiently set all these negatives to zero. With 10% of data missing, data*UnitStep[data] is about twice as fast as data/._?Negative->0 for real data, and about 30 times as fast for integer data.