Documentation of 'org.apache.commons.lang3.math.IEEE754rUtils' Java class
IEEE754rUtils
org.apache.commons.lang3.math

Class IEEE754rUtils

    • Constructor Summary

      Constructors 
      Constructor and Description
      IEEE754rUtils() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static double max(double[] array)
      Returns the maximum value in an array.
      static double max(double a, double b)
      Gets the maximum of two double values.
      static double max(double a, double b, double c)
      Gets the maximum of three double values.
      static float max(float[] array)
      Returns the maximum value in an array.
      static float max(float a, float b)
      Gets the maximum of two float values.
      static float max(float a, float b, float c)
      Gets the maximum of three float values.
      static double min(double[] array)
      Returns the minimum value in an array.
      static double min(double a, double b)
      Gets the minimum of two double values.
      static double min(double a, double b, double c)
      Gets the minimum of three double values.
      static float min(float[] array)
      Returns the minimum value in an array.
      static float min(float a, float b)
      Gets the minimum of two float values.
      static float min(float a, float b, float c)
      Gets the minimum of three float values.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IEEE754rUtils

        public IEEE754rUtils()
    • Method Detail

      • min

        public static double min(double[] array)

        Returns the minimum value in an array.

        Parameters:
        array - an array, must not be null or empty
        Returns:
        the minimum value in the array
        Throws:
        java.lang.IllegalArgumentException - if array is null
        java.lang.IllegalArgumentException - if array is empty
      • min

        public static float min(float[] array)

        Returns the minimum value in an array.

        Parameters:
        array - an array, must not be null or empty
        Returns:
        the minimum value in the array
        Throws:
        java.lang.IllegalArgumentException - if array is null
        java.lang.IllegalArgumentException - if array is empty
      • min

        public static double min(double a,
                                 double b,
                                 double c)

        Gets the minimum of three double values.

        NaN is only returned if all numbers are NaN as per IEEE-754r.

        Parameters:
        a - value 1
        b - value 2
        c - value 3
        Returns:
        the smallest of the values
      • min

        public static double min(double a,
                                 double b)

        Gets the minimum of two double values.

        NaN is only returned if all numbers are NaN as per IEEE-754r.

        Parameters:
        a - value 1
        b - value 2
        Returns:
        the smallest of the values
      • min

        public static float min(float a,
                                float b,
                                float c)

        Gets the minimum of three float values.

        NaN is only returned if all numbers are NaN as per IEEE-754r.

        Parameters:
        a - value 1
        b - value 2
        c - value 3
        Returns:
        the smallest of the values
      • min

        public static float min(float a,
                                float b)

        Gets the minimum of two float values.

        NaN is only returned if all numbers are NaN as per IEEE-754r.

        Parameters:
        a - value 1
        b - value 2
        Returns:
        the smallest of the values
      • max

        public static double max(double[] array)

        Returns the maximum value in an array.

        Parameters:
        array - an array, must not be null or empty
        Returns:
        the minimum value in the array
        Throws:
        java.lang.IllegalArgumentException - if array is null
        java.lang.IllegalArgumentException - if array is empty
      • max

        public static float max(float[] array)

        Returns the maximum value in an array.

        Parameters:
        array - an array, must not be null or empty
        Returns:
        the minimum value in the array
        Throws:
        java.lang.IllegalArgumentException - if array is null
        java.lang.IllegalArgumentException - if array is empty
      • max

        public static double max(double a,
                                 double b,
                                 double c)

        Gets the maximum of three double values.

        NaN is only returned if all numbers are NaN as per IEEE-754r.

        Parameters:
        a - value 1
        b - value 2
        c - value 3
        Returns:
        the largest of the values
      • max

        public static double max(double a,
                                 double b)

        Gets the maximum of two double values.

        NaN is only returned if all numbers are NaN as per IEEE-754r.

        Parameters:
        a - value 1
        b - value 2
        Returns:
        the largest of the values
      • max

        public static float max(float a,
                                float b,
                                float c)

        Gets the maximum of three float values.

        NaN is only returned if all numbers are NaN as per IEEE-754r.

        Parameters:
        a - value 1
        b - value 2
        c - value 3
        Returns:
        the largest of the values
      • max

        public static float max(float a,
                                float b)

        Gets the maximum of two float values.

        NaN is only returned if all numbers are NaN as per IEEE-754r.

        Parameters:
        a - value 1
        b - value 2
        Returns:
        the largest of the values

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.