All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home

Class weka.classifiers.trees.m5.CorrelationSplitInfo

java.lang.Object
    |
    +----weka.classifiers.trees.m5.CorrelationSplitInfo

public final class CorrelationSplitInfo
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable, SplitEvaluate
Finds split points using correlation.

Version:
$Revision: 1.1 $
Author:
Mark Hall (mhall@cs.waikato.ac.nz)

Constructor Index

 o CorrelationSplitInfo(int, int, int)
Constructs an object which contains the split information

Method Index

 o attrSplit(int, Instances)
Finds the best splitting point for an attribute in the instances
 o copy()
Makes a copy of this CorrelationSplitInfo object
 o initialize(int, int, int)
Resets the object of split information
 o maxImpurity()
Returns the impurity of this split
 o position()
Returns the position of the split in the sorted values.
 o splitAttr()
Returns the attribute used in this split
 o splitValue()
Returns the split value

Constructor Detail

 o CorrelationSplitInfo
public CorrelationSplitInfo(int low,
                            int high,
                            int attr)
          Constructs an object which contains the split information
Parameters:
low - the index of the first instance
high - the index of the last instance
attr - an attribute

Method Detail

 o copy
public final SplitEvaluate copy() throws java.lang.Exception
          Makes a copy of this CorrelationSplitInfo object
 o initialize
public final void initialize(int low,
                             int high,
                             int attr)
          Resets the object of split information
Parameters:
low - the index of the first instance
high - the index of the last instance
attr - the attribute
 o attrSplit
public final void attrSplit(int attr,
                            Instances inst) throws java.lang.Exception
          Finds the best splitting point for an attribute in the instances
Parameters:
attr - the splitting attribute
inst - the instances
Throws:
java.lang.Exception - if something goes wrong
 o maxImpurity
public double maxImpurity()
          Returns the impurity of this split
Returns:
the impurity of this split
 o splitAttr
public int splitAttr()
          Returns the attribute used in this split
Returns:
the attribute used in this split
 o position
public int position()
          Returns the position of the split in the sorted values. -1 indicates that a split could not be found.
Returns:
an int value
 o splitValue
public double splitValue()
          Returns the split value
Returns:
the split value

All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home