Here you can find the source of min(float[] in, int[] idx)
public static final float min(float[] in, int[] idx)
//package com.java2s; //License from project: Apache License public class Main { public static final float min(float[] in, int[] idx) { float min = in[0]; for (int i = 1; i < in.length; i++) { if (in[i] < min) { min = in[i];//from w ww . j av a2 s .c o m } } return min; } public static final int min(int[] in) { int out = in[0]; for (int i = 1; i < in.length; i++) { if (in[i] < out) { out = in[i]; } } return out; } public static final double min(double[] in) { double out = in[0]; for (int i = 1; i < in.length; i++) { if (in[i] < out) { out = in[i]; } } return out; } public static final float min(float[] in) { float out = in[0]; for (int i = 1; i < in.length; i++) { if (in[i] < out) { out = in[i]; } } return out; } }