Package | Description |
---|---|
weka.core.neighboursearch.balltrees |
Modifier and Type | Method and Description |
---|---|
protected MiddleOutConstructor.TempNode |
MiddleOutConstructor.getFurthestFromMeanAnchor(int startIdx,
int endIdx)
Returns an anchor point which is furthest from the
mean point for a given set of points (instances)
(The anchor instance is chosen from the given
set of points).
|
protected MiddleOutConstructor.TempNode |
MiddleOutConstructor.getRandomAnchor(int startIdx,
int endIdx)
Returns a random anchor point/instance from a
given set of points/instances.
|
Modifier and Type | Method and Description |
---|---|
Instance |
MiddleOutConstructor.calcPivot(MiddleOutConstructor.TempNode node1,
MiddleOutConstructor.TempNode node2,
Instances insts)
/**
Calculates the centroid pivot of a node based on its
two child nodes (if merging two nodes).
|
double |
MiddleOutConstructor.calcRadius(MiddleOutConstructor.TempNode n1,
MiddleOutConstructor.TempNode n2)
Calculates the radius of a node based on its two
child nodes (if merging two nodes).
|
protected BallNode |
MiddleOutConstructor.makeBallTreeNodes(MiddleOutConstructor.TempNode node,
int startidx,
int endidx,
int depth)
Makes BallTreeNodes out of TempNodes.
|
void |
MiddleOutConstructor.setInterAnchorDistances(Vector anchors,
MiddleOutConstructor.TempNode newAnchor,
Vector anchorDistances)
Sets the distances of a supplied new
anchor to all the rest of the
previous anchor points.
|
void |
MiddleOutConstructor.setPoints(MiddleOutConstructor.TempNode node,
int startIdx,
int endIdx,
int[] indices)
Sets the points of an anchor node.
|
boolean |
MiddleOutConstructor.stealPoints(MiddleOutConstructor.TempNode newAnchor,
Vector anchors,
Vector anchorDistances)
Removes points from old anchors that
are nearer to the given new anchor and
adds them to the list of points of the
new anchor.
|
Copyright © 2015 University of Waikato, Hamilton, NZ. All rights reserved.