public class TopDownConstructor extends BallTreeConstructor implements TechnicalInformationHandler
@techreport{Omohundro1989,
author = {Stephen M. Omohundro},
institution = {International Computer Science Institute},
month = {December},
number = {TR-89-063},
title = {Five Balltree Construction Algorithms},
year = {1989}
}
Valid options are:
-S <classname and options> Ball splitting algorithm to use.
| Constructor and Description |
|---|
TopDownConstructor()
Creates a new instance of TopDownConstructor.
|
| Modifier and Type | Method and Description |
|---|---|
int[] |
addInstance(BallNode node,
Instance inst)
Adds an instance to the ball tree.
|
String |
ballSplitterTipText()
Returns the tip text for this property.
|
BallNode |
buildTree()
Builds the ball tree top down.
|
BallSplitter |
getBallSplitter()
Returns the BallSplitter algorithm set that would be
used by the TopDown BallTree constructor.
|
String[] |
getOptions()
Gets the current settings of KDtree.
|
String |
getRevision()
Returns the revision string.
|
TechnicalInformation |
getTechnicalInformation()
Returns an instance of a TechnicalInformation object, containing detailed
information about the technical background of this class, e.g., paper
reference or book this class is based on.
|
String |
globalInfo()
Returns a string describing this nearest neighbour search algorithm.
|
Enumeration |
listOptions()
Returns an enumeration describing the available options.
|
void |
setBallSplitter(BallSplitter splitter)
Sets the ball splitting algorithm to be used by the
TopDown constructor.
|
void |
setOptions(String[] options)
Parses a given list of options.
|
containChildBallsTipText, getContainChildBalls, getMaxDepth, getMaxInstancesInLeaf, getMaxRelativeLeafRadius, getNumLeaves, getNumNodes, maxInstancesInLeafTipText, maxRelativeLeafRadiusTipText, setContainChildBalls, setEuclideanDistanceFunction, setInstanceList, setInstances, setMaxInstancesInLeaf, setMaxRelativeLeafRadiuspublic TopDownConstructor()
public String globalInfo()
public TechnicalInformation getTechnicalInformation()
getTechnicalInformation in interface TechnicalInformationHandlerpublic BallNode buildTree() throws Exception
buildTree in class BallTreeConstructorException - If there is problem building
the tree.public int[] addInstance(BallNode node, Instance inst) throws Exception
addInstance in class BallTreeConstructornode - The root node of the tree.inst - The instance to add to the tree.Exception - If there is some problem adding the
given instance to the tree.public String ballSplitterTipText()
public BallSplitter getBallSplitter()
public void setBallSplitter(BallSplitter splitter)
splitter - The BallSplitter to use.public Enumeration listOptions()
listOptions in interface OptionHandlerlistOptions in class BallTreeConstructorpublic void setOptions(String[] options) throws Exception
-S <classname and options> Ball splitting algorithm to use.
setOptions in interface OptionHandlersetOptions in class BallTreeConstructoroptions - the list of options as an array of stringsException - if an option is not supportedpublic String[] getOptions()
getOptions in interface OptionHandlergetOptions in class BallTreeConstructorpublic String getRevision()
getRevision in interface RevisionHandlergetRevision in class BallTreeConstructorCopyright © 2013 University of Waikato, Hamilton, NZ. All Rights Reserved.