public final class MathUtils extends Object
Modifier and Type | Field and Description |
---|---|
static double |
EPSILON
Values smaller than this EPSILON should be treated as zero.
|
Modifier and Type | Method and Description |
---|---|
static void |
adjustRemainders(double[] list,
double bias)
Adjusts the list of double values to rounded values with the same sum.
|
static double |
findAndAdjustMaxRemainder(double[] list) |
static double |
findAndAdjustMinRemainder(double[] list) |
static boolean |
isInteger(double value) |
static boolean |
isNotInteger(double value) |
static boolean |
isNotZero(double factor) |
static boolean |
isZero(double factor) |
static double |
remainder(double v) |
public static final double EPSILON
public static void adjustRemainders(double[] list, double bias)
public static double findAndAdjustMaxRemainder(double[] list)
public static double findAndAdjustMinRemainder(double[] list)
public static double remainder(double v)
public static boolean isZero(double factor)
public static boolean isNotZero(double factor)
public static boolean isInteger(double value)
public static boolean isNotInteger(double value)
Copyright © 2002-2015 The Apache Software Foundation. All Rights Reserved.