Does the leak extend beyond median()? For example, does it extend to array_sort() or to other math routines? If it's confined to median(), I can just define my own, something like this: define myMedian(x) { if (x == NULL) return NULL; variable xl = length(x); if (xl < 1) return NULL; variable xs = x[array_sort(x)]; variable xm = xs[roundToInt((xl + 0.5) / 2.) - 1]; return xm; } (Possibly buggy.) Thanks, Rob Quoting "John E. Davis" <davis_at_email.domain.hidden > rgibson_at_email.domain.hidden>> The offending line appears to be the call to median(), as commenting it out >> makes the leak disappear. > > It appears that median does have a leak. Until it is fixed, you might > want to consider using the stats module: > > <http://space.mit.edu/cxc/software/slang/modules/stats/> > > Thanks, > --John >Received on Fri Jan 25 2008 - 17:13:01 EST
This archive was generated by hypermail 2.3.0 : Fri May 02 2014 - 08:35:45 EDT