Skip to content

compute midsummary

kgryte edited this page May 12, 2015 · 1 revision

Computes the n% midsummary of a numeric array. n exists on the interval [0.0, 0.50] and specifies the proportion of values to discard in the distribution tails.

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

var ms = compute.midsummary( data, 0.25 );

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

Clone this wiki locally