Skip to content

compute argmin

kgryte edited this page May 12, 2015 · 1 revision

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

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

var idx = compute.argmin( data );
// returns [0,2]
Clone this wiki locally