Package weka.classifiers.trees.ht

# Class Split

java.lang.Object
weka.classifiers.trees.ht.Split

All Implemented Interfaces:
  `Serializable`

Direct Known Subclasses:
  `UnivariateNominalMultiwaySplit`, `UnivariateNumericBinarySplit`

public abstract class Split extends Object implements Serializable
Base class for different split types

Version:
  $Revision: 10531 $
Author:
  Richard Kirkby (rkirkby@cs.waikato.ac.nz), Mark Hall (mhall{[at]}pentaho{[dot]}com)
See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Split()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `abstract String`
  `branchForInstance(Instance inst)`
  Returns the name of the branch that the supplied instance would go down
  `abstract String`
  `conditionForBranch(String branch)`
  Returns the condition for the supplied branch name
  `List<String>`
  `splitAttributes()`

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### Split

    public Split()

- ## Method Details

  - ### branchForInstance

    public abstract String branchForInstance(Instance inst)
    Returns the name of the branch that the supplied instance would go down
    Parameters:
      `inst` - the instance to find the branch for
    Returns:
      the name of the branch that the instance would go down

  - ### conditionForBranch

    public abstract String conditionForBranch(String branch)
    Returns the condition for the supplied branch name
    Parameters:
      `branch` - the name of the branch to get the condition for
    Returns:
      the condition (test) that corresponds to the named branch

  - ### splitAttributes

    public List<String> splitAttributes()