Here you can find the source of minIndex(double[] value)
public static double minIndex(double[] value)
//package com.java2s; //License from project: Open Source License public class Main { /**/*w w w . j a v a 2 s . c o m*/ * returns the index of the smallest element from the given array */ public static double minIndex(double[] value) { double result = Double.POSITIVE_INFINITY; int index = 0; for (int i = 0; i < value.length; i++) { if (value[i] < result) result = value[i]; index = i; } return index; } }