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

Class weka.classifiers.m5.SplitInfo

java.lang.Object
    |
    +----weka.classifiers.m5.SplitInfo

public final class SplitInfo
extends java.lang.Object
implements java.io.Serializable
Stores split information.

Version:
$Revision: 1.4 $
Author:
Yong Wang (yongwang@cs.waikato.ac.nz)

Constructor Index

 o SplitInfo(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 SplitInfo object
 o initialize(int, int, int)
Resets the object of split information
 o toString(Instances)
Converts the spliting information to string

Constructor Detail

 o SplitInfo
public SplitInfo(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 SplitInfo copy()
          Makes a copy of this SplitInfo 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 toString
public final java.lang.String toString(Instances inst)
          Converts the spliting information to string
Parameters:
inst - the instances
 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

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