Skip to content

statistics on "runs" of numbers

3 messages · tolga.i.uzuner at jpmorgan.com, Albyn Jones

#
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: