public class IDD extends Discretizer
This class implements the IDD
classOfInstances, cutPoints, iClassIndex, realAttributes, realValues
Constructor and Description |
---|
IDD()
Constructor of the class
|
Modifier and Type | Method and Description |
---|---|
protected java.util.Vector |
discretizeAttribute(int attribute,
int[] values,
int begin,
int end)
Returns a vector with the discretized values
|
protected void |
sortValues(keel.Algorithms.Discretizers.IDD.IDD.rank[] values,
int begin,
int end,
int type)
Sorts an array
|
applyDiscretization, buildCutPoints, discretize, getCutPoint, getNumIntervals, sortValues
protected java.util.Vector discretizeAttribute(int attribute, int[] values, int begin, int end)
Returns a vector with the discretized values
discretizeAttribute
in class Discretizer
attribute
- index of the attribute to discretizevalues
- vector of indexes of the instances sorted from lowest to highest value of attributebegin
- index of the instance with the lowest value of attributeend
- index of the instance with the highest value of attributeprotected void sortValues(keel.Algorithms.Discretizers.IDD.IDD.rank[] values, int begin, int end, int type)
Sorts an array
values
- array to sortbegin
- start position to sortend
- end position to sorttype
- = HIGHER_FIRST (it sorts from highest to lowest), type = LOWER_FIRST (it sorts from lowest
to higest)