public static double min(double[] values) {double min = Double.POSITIVE_INFINITY;for (double value : values) {min = Math.min(min, value);}return min;}
public static double Min(double[] values){double min = double.PositiveInfinity;for (int i = 0, iSize = values.Length; i < iSize; i++){min = Math.Min(min, values[i]);}return min;}