Skip to content

compute argnanmax

kgryte edited this page May 12, 2015 · 1 revision

Computes the maximum value of an array ignoring non-numeric values and returns the corresponding array indices.

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

var idx = compute.argnanmax( data );
// returns [1,3]
Clone this wiki locally