Class MathUtils
java.lang.Object
org.apache.myfaces.tobago.internal.layout.MathUtils
Deprecated.
since 3.0.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doubleDeprecated.Values smaller than this EPSILON should be treated as zero. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidadjustRemainders(double[] list, double initialBias) Deprecated.Adjusts the list of double values to rounded values with the same sum.static doublefindAndAdjustMaxRemainder(double[] list) Deprecated.static doublefindAndAdjustMinRemainder(double[] list) Deprecated.static booleanisInteger(double value) Deprecated.static booleanisNotInteger(double value) Deprecated.static booleanisNotZero(double factor) Deprecated.static booleanisZero(double factor) Deprecated.static doubleremainder(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.
-