public class FixedFrequencyDiscretizer extends Discretizer
This class implements the Fixed Frequency discretizer.
classOfInstances, cutPoints, iClassIndex, realAttributes, realValues
Constructor and Description |
---|
FixedFrequencyDiscretizer(int _freqSize)
Constructor of the class, initializes the numInt attribute
|
Modifier and Type | Method and Description |
---|---|
protected java.util.Vector |
discretizeAttribute(int attribute,
int[] values,
int begin,
int end)
It returns a vector with the discretized values
|
applyDiscretization, buildCutPoints, discretize, getCutPoint, getNumIntervals, sortValues
public FixedFrequencyDiscretizer(int _freqSize)
Constructor of the class, initializes the numInt attribute
_freqSize
- frequency of examples per intervalprotected 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 attribute