Skip to content

compute midrange

kgryte edited this page May 12, 2015 · 1 revision

Computes the mid-range (mid-extreme) of a numeric array.

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

var mr = compute.midrange( data );

If the input array is already sorted in ascending order, set the sorted flag to true.

Clone this wiki locally