Example usage for Java com.google.common.math DoubleMath fields, constructors, methods, implement or subclass
The text is from its open source code.
int | fuzzyCompare(double a, double b, double tolerance) Compares a and b "fuzzily," with a tolerance for nearly-equal values. |
boolean | fuzzyEquals(double a, double b, double tolerance) Returns true if a and b are within tolerance of each other. |
boolean | isMathematicalInteger(double x) Returns true if x represents a mathematical integer. |
double | log2(double x) Returns the base 2 logarithm of a double value. |
double | mean(double... values) Returns the arithmetic mean of values . |
double | mean(int... values) Returns the arithmetic mean of values . |
double | mean(long... values) Returns the arithmetic mean of values . |
double | mean(Iterable extends Number> values) Returns the arithmetic mean of values . |
double | mean(Iterator extends Number> values) Returns the arithmetic mean of values . |
int | roundToInt(double x, RoundingMode mode) Returns the int value that is equal to x rounded with the specified rounding mode, if possible. |
long | roundToLong(double x, RoundingMode mode) Returns the long value that is equal to x rounded with the specified rounding mode, if possible. |