类 BallSplitter

java.lang.Object
weka.core.neighboursearch.balltrees.BallSplitter
所有已实现的接口:
Serializable, OptionHandler, RevisionHandler
直接已知子类:
MedianDistanceFromArbitraryPoint, MedianOfWidestDimension, PointsClosestToFurthestChildren

public abstract class BallSplitter extends Object implements Serializable, OptionHandler, RevisionHandler
Abstract class for splitting a ball tree's BallNode.
版本:
$Revision: 1.2 $
作者:
Ashraf M. Kibriya (amk14[at-the-rate]cs[dot]waikato[dot]ac[dot]nz)
另请参阅:
  • 构造器详细资料

    • BallSplitter

      public BallSplitter()
      default constructor.
    • BallSplitter

      public BallSplitter(int[] instList, Instances insts, EuclideanDistance e)
      Creates a new instance of BallSplitter.
      参数:
      instList - The master index array.
      insts - The instances on which the tree is (or is to be) built.
      e - The Euclidean distance function to use for splitting.
  • 方法详细资料

    • listOptions

      public Enumeration listOptions()
      Returns an enumeration describing the available options.
      指定者:
      listOptions 在接口中 OptionHandler
      返回:
      an enumeration of all the available options.
    • setOptions

      public void setOptions(String[] options) throws Exception
      Parses a given list of options.
      指定者:
      setOptions 在接口中 OptionHandler
      参数:
      options - the list of options as an array of strings
      抛出:
      Exception - if an option is not supported
    • getOptions

      public String[] getOptions()
      Gets the current settings of the object.
      指定者:
      getOptions 在接口中 OptionHandler
      返回:
      an array of strings suitable for passing to setOptions
    • splitNode

      public abstract void splitNode(BallNode node, int numNodesCreated) throws Exception
      Splits a node into two.
      参数:
      node - The node to split.
      numNodesCreated - The number of nodes that so far have been created for the tree, so that the newly created nodes are assigned correct/meaningful node numbers/ids.
      抛出:
      Exception - If there is some problem in splitting the given node.
    • setInstances

      public void setInstances(Instances inst)
      Sets the training instances on which the tree is (or is to be) built.
      参数:
      inst - The training instances.
    • setInstanceList

      public void setInstanceList(int[] instList)
      Sets the master index array containing indices of the training instances. This array will be rearranged as the tree is built (or a node is split_), so that each node is assigned a portion in this array which contain the instances insides the node's region.
      参数:
      instList - The master index array.
    • setEuclideanDistanceFunction

      public void setEuclideanDistanceFunction(EuclideanDistance func)
      Sets the distance function used to (or to be used to) build the tree.
      参数:
      func - The distance function.
    • getRevision

      public String getRevision()
      Returns the revision string.
      指定者:
      getRevision 在接口中 RevisionHandler
      返回:
      the revision