jsat.linear.vectorcollection
Interface IndexNode<N extends IndexNode>
-
- Type Parameters:
N-
- All Known Implementing Classes:
- DualTree.SelfAsChildNode
public interface IndexNode<N extends IndexNode>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method and Description default booleanallPointsInLeaves()default java.util.Iterator<java.lang.Integer>DescendantIterator()doublefurthestDescendantDistance()Returns an upper bound on the farthest distance from this node to any of the points it owns or its children own.doublefurthestPointDistance()Returns an upper bound on the farthest distance from this node to any of the points it owns.IndexNodegetChild(int indx)default doublegetParentDistance()Gets the distance from this node (or its centroid) to it's parent node (or centroid).NgetParrent()intgetPoint(int indx)VecgetVec(int indx)default booleanhasChildren()doublemaxNodeDistance(N other)default double[]minMaxDistance(N other)doubleminNodeDistance(int other)This method returns a lower bound on the minimum distance from a point in or owned by this node to theotherpoint.doubleminNodeDistance(N other)This method returns a lower bound on the minimum distance from a point in or owned by this node to any point in or owner by theothernode.intnumChildren()intnumPoints()
-
-
-
Method Detail
-
getParrent
N getParrent()
- Returns:
- returns the parent node to this one, or
nullif this node is the root.
-
minNodeDistance
double minNodeDistance(N other)
This method returns a lower bound on the minimum distance from a point in or owned by this node to any point in or owner by theothernode. Because the value return is a lower bound, 0 would always be a valid return value.- Parameters:
other- the other node of points to get the minimum distance to- Returns:
- a lower bound on the minimum distance.
-
maxNodeDistance
double maxNodeDistance(N other)
-
minMaxDistance
default double[] minMaxDistance(N other)
- Parameters:
other-- Returns:
- an array where the first value is the minimum distance between nodes, and second value is the maximum
-
minNodeDistance
double minNodeDistance(int other)
This method returns a lower bound on the minimum distance from a point in or owned by this node to theotherpoint. Because the value return is a lower bound, 0 would always be a valid return value.- Parameters:
other-- Returns:
-
getParentDistance
default double getParentDistance()
Gets the distance from this node (or its centroid) to it's parent node (or centroid).- Returns:
-
furthestPointDistance
double furthestPointDistance()
Returns an upper bound on the farthest distance from this node to any of the points it owns.
In the Dual Tree papers, this is often given as ρ(N_i)- Returns:
- an upper bound on the distance
-
furthestDescendantDistance
double furthestDescendantDistance()
Returns an upper bound on the farthest distance from this node to any of the points it owns or its children own.
In the Dual Tree papers, this is often given as λ(Ni)- Returns:
- an upper bound on the distance
-
numChildren
int numChildren()
- Returns:
-
getChild
IndexNode getChild(int indx)
-
getVec
Vec getVec(int indx)
-
numPoints
int numPoints()
-
getPoint
int getPoint(int indx)
-
hasChildren
default boolean hasChildren()
-
allPointsInLeaves
default boolean allPointsInLeaves()
-
DescendantIterator
default java.util.Iterator<java.lang.Integer> DescendantIterator()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG