static double min ( double [ ] values ) { double min = values [ 0 ] ; for ( double value : values ) if ( value < min ) min = value ; return min ; }
Analog of Math . min that returns the largest double value in an array of double .