Class MathUtils

    • Field Detail

      • EPSILON

        public static final double EPSILON
        Deprecated.
        Values smaller than this EPSILON should be treated as zero.
        See Also:
        Constant Field Values
    • Method Detail

      • adjustRemainders

        public static void adjustRemainders​(double[] list,
                                            double initialBias)
        Deprecated.
        Adjusts the list of double values to rounded values with the same sum. E. g. 2.3, 2.4, 2.5, 2.8 -> 2.0, 2.0, 3.0, 3.0
      • findAndAdjustMaxRemainder

        public static double findAndAdjustMaxRemainder​(double[] list)
        Deprecated.
      • findAndAdjustMinRemainder

        public static double findAndAdjustMinRemainder​(double[] list)
        Deprecated.
      • remainder

        public static double remainder​(double v)
        Deprecated.
      • isZero

        public static boolean isZero​(double factor)
        Deprecated.
      • isNotZero

        public static boolean isNotZero​(double factor)
        Deprecated.
      • isInteger

        public static boolean isInteger​(double value)
        Deprecated.
      • isNotInteger

        public static boolean isNotInteger​(double value)
        Deprecated.