Here you can find the source of min(double values[], int size)
public final static double min(double values[], int size)
//package com.java2s; //License from project: Apache License public class Main { public final static double min(double values[], int size) { if (values == null || size == 0) { return Double.NaN; }/*from w w w . j av a2 s.c o m*/ double r = Double.POSITIVE_INFINITY; for (int i = 0; i < size; i++) { double v = values[i]; if (!Double.isNaN(v) && r > v) { r = v; } } return r == Double.POSITIVE_INFINITY ? Double.NaN : r; } }