Split

<array<series>> output = <series>.split(<number> Window Length, <number> Window Overlap)

This function returns an array of windows from a data series.  Each window is size Window Length and they overlap by Window Overlap samples.  These arguments are both given in samples.

Example:

var myWinArray = mySeries.split(100, 25);

for(var i = 0; i < myWinArray.length; i++)

      myWinArray[i] = myWinArray[i].abs();

The example above accesses each window series in the split array, takes the absolute value, and replaces the window with the new absolute value window.