public class MathUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static double |
EULER_MASCHERONI_CONSTANT
Euler–Mascheroni constant (also called Euler's constant)
|
Constructor and Description |
---|
MathUtils() |
Modifier and Type | Method and Description |
---|---|
static int |
combinatorial(int top,
int bottom) |
static boolean |
equalsWithinRecSumErr(double actual,
double expected,
int n,
double absum) |
static double |
harmonicNumberEstimation(long value)
Compute harmonic number estimated by natural logarithm
|
static int |
log2(int n)
Fast calculation of log base 2 for integers.
|
static int |
log2(long n) |
public static final double EULER_MASCHERONI_CONSTANT
public static boolean equalsWithinRecSumErr(double actual, double expected, int n, double absum)
public static int log2(int n)
public static int log2(long n)
public static int combinatorial(int top, int bottom)
public static double harmonicNumberEstimation(long value)