weka.classifiers.m5
Class SplitInfo

java.lang.Object
  |
  +--weka.classifiers.m5.SplitInfo
All Implemented Interfaces:
java.io.Serializable

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

Stores split information.

Author:
Yong Wang (yongwang@cs.waikato.ac.nz)
See Also:
Serialized Form

Constructor Summary
SplitInfo(int low, int high, int attr)
          Constructs an object which contains the split information
 
Method Summary
 void attrSplit(int attr, Instances inst)
          Finds the best splitting point for an attribute in the instances
 SplitInfo copy()
          Makes a copy of this SplitInfo object
 void initialize(int low, int high, int attr)
          Resets the object of split information
 java.lang.String toString(Instances inst)
          Converts the spliting information to string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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

copy

public final SplitInfo copy()
Makes a copy of this SplitInfo object

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

toString

public final java.lang.String toString(Instances inst)
Converts the spliting information to string
Parameters:
inst - the instances

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