modnlp.util
public class Maths extends java.lang.Object
Constructor and Description |
---|
Maths() |
Modifier and Type | Method and Description |
---|---|
static double |
log(double ln,
double base) |
static double |
log2(double ln) |
static double |
safediv(double dividend,
double divisor) |
static double |
safeLog2(double ln) |
static double |
xTimesLog2y(double x,
double y)
Safe "x * log y" with 0 log 0 =def 0, for use computing info theoretic metrics
|
public static double log2(double ln)
public static double safeLog2(double ln)
public static double log(double ln, double base)
public static double safediv(double dividend, double divisor)
public static double xTimesLog2y(double x, double y)