Class NominalAttributeMultiwayTest

    • Field Detail

      • attIndex

        protected int attIndex
    • Constructor Detail

      • NominalAttributeMultiwayTest

        public NominalAttributeMultiwayTest​(int attIndex)
    • Method Detail

      • branchForInstance

        public int branchForInstance​(Instance inst)
        Description copied from class: InstanceConditionalTest
        Returns the number of the branch for an instance, -1 if unknown.
        Specified by:
        branchForInstance in class InstanceConditionalTest
        Parameters:
        inst - the instance to be used
        Returns:
        the number of the branch for an instance, -1 if unknown.
      • describeConditionForBranch

        public String describeConditionForBranch​(int branch,
                                                 InstancesHeader context)
        Description copied from class: InstanceConditionalTest
        Gets the text that describes the condition of a branch. It is used to describe the branch.
        Specified by:
        describeConditionForBranch in class InstanceConditionalTest
        Parameters:
        branch - the number of the branch to describe
        context - the context or header of the data stream
        Returns:
        the text that describes the condition of the branch
      • getDescription

        public void getDescription​(StringBuilder sb,
                                   int indent)
        Description copied from interface: MOAObject
        Returns a string representation of this object. Used in AbstractMOAObject.toString to give a string representation of the object.
        Parameters:
        sb - the stringbuilder to add the description
        indent - the number of characters to indent