weka.classifiers.m5
Class SplitInfo

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

public final class SplitInfo
extends Object
implements Serializable

Stores split information.

Version:
$Revision: 1.4 $
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
 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 String toString(Instances inst)
Converts the spliting information to string

Parameters:
inst - the instances

attrSplit

public final void attrSplit(int attr,
                            Instances inst)
                     throws Exception
Finds the best splitting point for an attribute in the instances

Parameters:
attr - the splitting attribute
inst - the instances
Throws:
Exception - if something goes wrong