public double min ( double ... values ) { double min = Double . MAX_VALUE ; for ( int i = 0 ; i < values . length ; i ++ ) { if ( i == 0 || values [ i ] < min ) { min = values [ i ] ; } } return min ; }
Get the smallest of the set of double values .