public class HellingerBD extends Discretizer
This class implements the HellingerBD discretizer
classOfInstances, cutPoints, iClassIndex, realAttributes, realValues
Constructor and Description |
---|
HellingerBD()
Constructor of the class
|
Modifier and Type | Method and Description |
---|---|
double |
cutpointEntropy(int cutp)
It computes the cutpoint entropy
|
protected java.util.Vector |
discretizeAttribute(int attribute,
int[] values,
int begin,
int end)
It returns a vector with the discretized values
|
double |
intervalEntropy(int interval,
int attribute)
It computes the interval entropy
|
applyDiscretization, buildCutPoints, discretize, getCutPoint, getNumIntervals, sortValues
protected java.util.Vector discretizeAttribute(int attribute, int[] values, int begin, int end)
It returns a vector with the discretized values
discretizeAttribute
in class Discretizer
attribute
- index of the attribute to discretizevalues
- vector of the indexes of the instances sorted from the lowest to the highest value of attributebegin
- index of the instance with the lowest value of attributeend
- index of the instance with the highest value of attributepublic double intervalEntropy(int interval, int attribute)
It computes the interval entropy
interval
- index of the intervalattribute
- index of the attribute to discretizepublic double cutpointEntropy(int cutp)
It computes the cutpoint entropy
cutp
- index of the cutpoint