Skip to content

compute argmax

kgryte edited this page May 12, 2015 · 1 revision

Computes the maximum value of a numeric array and returns the corresponding array indices.

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

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