Skip to content

compute cmax

kgryte edited this page May 12, 2015 · 1 revision

Computes the cumulative maximum of a numeric array.

var data = [ 2, 4, 2, 7, 3 ];

var arr = compute.cmax( data );
Clone this wiki locally