public class Cluster_Analysis extends Discretizer
This class implements the Cluster Analysis discretizer.
classOfInstances, cutPoints, iClassIndex, realAttributes, realValues
Constructor and Description |
---|
Cluster_Analysis()
Builder
|
Modifier and Type | Method and Description |
---|---|
void |
buildCutPoints(InstanceSet is)
It computes the cutpoints of the given dataset
|
protected java.util.Vector<java.lang.Double> |
discretizeAttribute(int attribute,
int[] values,
int begin,
int end)
Returns a vector with the discretized values.
|
double |
log2(double value)
Calculate the log base 2 of a number
|
applyDiscretization, discretize, getCutPoint, getNumIntervals, sortValues
public void buildCutPoints(InstanceSet is)
buildCutPoints
in class Discretizer
is
- the examples of the datasetprotected java.util.Vector<java.lang.Double> discretizeAttribute(int attribute, int[] values, int begin, int end)
Returns a vector with the discretized values.
discretizeAttribute
in class Discretizer
attribute
- values
- begin
- end
- public double log2(double value)
Calculate the log base 2 of a number
value
- Number to apply log base2