Class MathUtils
java.lang.Object
org.apache.myfaces.tobago.internal.layout.MathUtils
Deprecated.
since 3.0.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final double
Deprecated.Values smaller than this EPSILON should be treated as zero. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
adjustRemainders
(double[] list, double initialBias) Deprecated.Adjusts the list of double values to rounded values with the same sum.static double
findAndAdjustMaxRemainder
(double[] list) Deprecated.static double
findAndAdjustMinRemainder
(double[] list) Deprecated.static boolean
isInteger
(double value) Deprecated.static boolean
isNotInteger
(double value) Deprecated.static boolean
isNotZero
(double factor) Deprecated.static boolean
isZero
(double factor) Deprecated.static double
remainder
(double v) Deprecated.
-
Field Details
-
EPSILON
public static final double EPSILONDeprecated.Values smaller than this EPSILON should be treated as zero.- See Also:
-
-
Method Details
-
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.
-