java.io.Serializable
, MOAObject
IademNominalAttributeMultiwayTest
public class NominalAttributeMultiwayTest extends InstanceConditionalTest
Modifier and Type | Field | Description |
---|---|---|
protected int |
attIndex |
Constructor | Description |
---|---|
NominalAttributeMultiwayTest(int attIndex) |
Modifier and Type | Method | Description |
---|---|---|
int |
branchForInstance(Instance inst) |
Returns the number of the branch for an instance, -1 if unknown.
|
java.lang.String |
describeConditionForBranch(int branch,
InstancesHeader context) |
Gets the text that describes the condition of a branch.
|
int[] |
getAttsTestDependsOn() |
Returns an array with the attributes that the test depends on.
|
void |
getDescription(java.lang.StringBuilder sb,
int indent) |
Returns a string representation of this object.
|
int |
maxBranches() |
Gets the number of maximum branches, -1 if unknown.
|
copy, copy, measureByteSize, measureByteSize, toString
resultKnownForInstance
public int branchForInstance(Instance inst)
InstanceConditionalTest
branchForInstance
in class InstanceConditionalTest
inst
- the instance to be usedpublic java.lang.String describeConditionForBranch(int branch, InstancesHeader context)
InstanceConditionalTest
describeConditionForBranch
in class InstanceConditionalTest
branch
- the number of the branch to describecontext
- the context or header of the data streampublic int maxBranches()
InstanceConditionalTest
maxBranches
in class InstanceConditionalTest
public void getDescription(java.lang.StringBuilder sb, int indent)
MOAObject
AbstractMOAObject.toString
to give a string representation of the object.sb
- the stringbuilder to add the descriptionindent
- the number of characters to indentpublic int[] getAttsTestDependsOn()
InstanceConditionalTest
getAttsTestDependsOn
in class InstanceConditionalTest
Copyright © 2020 University of Waikato, Hamilton, NZ. All Rights Reserved.