Skip to content
Prev 164061 / 398506 Next

statistics on "runs" of numbers

rle(x) gives the run length encoding of x.

rle(x>0) or rle(sign(x)) will do this for positive and negative values of x.

albyn
On Mon, Dec 08, 2008 at 03:24:50PM +0000, tolga.i.uzuner at jpmorgan.com wrote: