Here you can find the source of minIndex(double[] list)
public static int minIndex(double[] list)
//package com.java2s; //License from project: Apache License public class Main { public static int minIndex(double[] list) { int bi = -1; for (int i = 0; i < list.length; i++) if (bi == -1 || list[i] < list[bi]) bi = i;//from w ww . java2s . c om return bi; } }