public final class YongSplitInfo extends Object implements Cloneable, Serializable, SplitEvaluate, RevisionHandler
| Constructor and Description |
|---|
YongSplitInfo(int low,
int high,
int attr)
Constructs an object which contains the split information
|
| Modifier and Type | Method and Description |
|---|---|
void |
attrSplit(int attr,
Instances inst)
Finds the best splitting point for an attribute in the instances
|
SplitEvaluate |
copy()
Makes a copy of this SplitInfo object
|
String |
getRevision()
Returns the revision string.
|
void |
initialize(int low,
int high,
int attr)
Resets the object of split information
|
double |
maxImpurity()
Returns the impurity of this split
|
int |
position()
Returns the position of the split in the sorted values.
|
int |
splitAttr()
Returns the attribute used in this split
|
double |
splitValue()
Returns the split value
|
String |
toString(Instances inst)
Converts the spliting information to string
|
public YongSplitInfo(int low,
int high,
int attr)
low - the index of the first instancehigh - the index of the last instanceattr - an attributepublic final SplitEvaluate copy() throws Exception
copy in interface SplitEvaluateExceptionpublic 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 String toString(Instances inst)
inst - the instancespublic final void attrSplit(int attr,
Instances inst)
throws Exception
attrSplit in interface SplitEvaluateattr - the splitting attributeinst - the instancesException - if something goes wrongpublic double maxImpurity()
maxImpurity in interface SplitEvaluatepublic int splitAttr()
splitAttr in interface SplitEvaluatepublic int position()
position in interface SplitEvaluateint valuepublic double splitValue()
splitValue in interface SplitEvaluatepublic String getRevision()
getRevision in interface RevisionHandlerCopyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.