Java Array Min Value min(final double... doubles)

Here you can find the source of min(final double... doubles)

Description

Minimum of several double

License

Open Source License

Parameter

Parameter Description
doubles Doubles to have the minimum

Return

Minimum of doubles

Declaration

public static final double min(final double... doubles) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    /**/*from  w ww . j a  v a  2s .com*/
     * Minimum of several double
     * 
     * @param doubles
     *           Doubles to have the minimum
     * @return Minimum of doubles
     */
    public static final double min(final double... doubles) {
        double min = doubles[0];

        for (final double real : doubles) {
            min = real < min ? real : min;
        }

        return min;
    }
}

Related

  1. min(double[] series)
  2. min(double[] vals)
  3. min(double[] values)
  4. min(double[] values)
  5. min(double[] x)
  6. min(final Double... values)
  7. Min(final double[] input)
  8. min(final double[] nums)
  9. min(final double[] tab)