public final class SplitInfo
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
SplitInfo(int low,
int high,
int attr)
Constructs an object which contains the split information
|
Modifier and Type | Method and Description |
---|---|
void |
attrSplit(int attr,
M5Instances 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(M5Instances inst)
Converts the spliting information to string
|
public SplitInfo(int low, int high, int attr)
low
- the index of the first instancehigh
- the index of the last instanceattr
- an attributepublic final SplitInfo copy()
public final void initialize(int low, int high, int attr)
low
- the index of the first instancehigh
- the index of the last instanceattr
- the attributepublic final java.lang.String toString(M5Instances inst)
inst
- the instancespublic final void attrSplit(int attr, M5Instances inst) throws java.lang.Exception
attr
- the splitting attributeinst
- the instancesjava.lang.Exception
- if something goes wrong