Java com.google.common.math DoubleMath fields, constructors, methods, implement or subclass

Example usage for Java com.google.common.math DoubleMath fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.common.math DoubleMath.

The text is from its open source code.

Method

intfuzzyCompare(double a, double b, double tolerance)
Compares a and b "fuzzily," with a tolerance for nearly-equal values.
booleanfuzzyEquals(double a, double b, double tolerance)
Returns true if a and b are within tolerance of each other.
booleanisMathematicalInteger(double x)
Returns true if x represents a mathematical integer.
doublelog2(double x)
Returns the base 2 logarithm of a double value.
doublemean(double... values)
Returns the arithmetic mean of values .
doublemean(int... values)
Returns the arithmetic mean of values .
doublemean(long... values)
Returns the arithmetic mean of values .
doublemean(Iterable values)
Returns the arithmetic mean of values .
doublemean(Iterator values)
Returns the arithmetic mean of values .
introundToInt(double x, RoundingMode mode)
Returns the int value that is equal to x rounded with the specified rounding mode, if possible.
longroundToLong(double x, RoundingMode mode)
Returns the long value that is equal to x rounded with the specified rounding mode, if possible.