public class BayesianDiscretizer extends Discretizer
This is the class with the operations of the Bayesian discretization. It adopts the behavior of the general discretizers and specifies its differences in this class, that has to extend the abstract methods.
classOfInstances, cutPoints, iClassIndex, realAttributes, realValues
Constructor and Description |
---|
BayesianDiscretizer() |
Modifier and Type | Method and Description |
---|---|
protected java.util.Vector |
discretizeAttribute(int attribute,
int[] values,
int begin,
int end)
Selects, for a given attribute, the real values that best discretize the attribute
according to the bayesian discretizer
|
applyDiscretization, buildCutPoints, discretize, getCutPoint, getNumIntervals, sortValues
protected java.util.Vector discretizeAttribute(int attribute, int[] values, int begin, int end)
Selects, for a given attribute, the real values that best discretize the attribute according to the bayesian discretizer
discretizeAttribute
in class Discretizer
attribute
- Position of the attribute in the list of attributes whose best real values
for discretization are going to be selectedvalues
- Position of the corresponding attribute value in the real values matrix,
ordered by attribute valuebegin
- First value that is considered to belong to the data considered, usually 0end
- Last value that is considered to belong to the data considered, usually the last
value of the dataset