public abstract class DirichletEntropy extends Entropy
| Modifier and Type | Field and Description |
|---|---|
static double |
EULER_MASCHERONI
The Euler-Mascheroni constant
|
ERROR_VALUE| Constructor and Description |
|---|
DirichletEntropy() |
| Modifier and Type | Method and Description |
|---|---|
double |
entropy(double[] frequencies,
int distinctValues,
int numberOfValues)
Compute the entropy of a vector of values (non missing values (NaN))
|
protected abstract double |
estimateModel(double[] frequencies,
int bins,
int samples)
Model estimator for a dirichlet probability
|
boolean |
hasNativeImplementation()
Know if the measure owns a native implementation
|
boolean |
requireDataTransformation()
Know if the measure need to transform input data (input data are copied to be preserved)
|
void |
transform(double[][] data)
The transformation method called before measurement
|
entropy, jointEntropy, measurepublic static final double EULER_MASCHERONI
protected abstract double estimateModel(double[] frequencies,
int bins,
int samples)
frequencies - The occurrences array (of values)bins - The number of bins (number of distinct values)samples - The number of samples (number of values)public double entropy(double[] frequencies,
int distinctValues,
int numberOfValues)
Entropypublic boolean hasNativeImplementation()
MeasurehasNativeImplementation in interface MeasurehasNativeImplementation in class Entropypublic boolean requireDataTransformation()
MeasurerequireDataTransformation in interface MeasurerequireDataTransformation in class Entropy