public abstract class Entropy extends Object
Modifier and Type | Field and Description |
---|---|
static double |
LOG_BASE |
Modifier and Type | Method and Description |
---|---|
static double |
calculateConditionalEntropy(double[] dataVector,
double[] conditionVector)
Calculates the conditional entropy H(X|Y) from two vectors.
|
static double |
calculateEntropy(double[] dataVector)
Calculates the univariate entropy H(X) from a vector.
|
static double |
calculateJointEntropy(double[] firstVector,
double[] secondVector)
Calculates the joint entropy H(X,Y) from two vectors.
|
public static double calculateEntropy(double[] dataVector)
dataVector
- Input vector (X). It is discretised to the floor of each value before calculation.public static double calculateConditionalEntropy(double[] dataVector, double[] conditionVector)
dataVector
- Input vector (X). It is discretised to the floor of each value before calculation.conditionVector
- Input vector (Y). It is discretised to the floor of each value before calculation.public static double calculateJointEntropy(double[] firstVector, double[] secondVector)
firstVector
- Input vector. It is discretised to the floor of each value before calculation.secondVector
- Input vector. It is discretised to the floor of each value before calculation.Jas4pp 1.5 © Java Analysis Studio for Particle Physics