public final class VpTreeNode<T extends VpTreePoint<T>> extends Object
Constructor and Description |
---|
VpTreeNode(List<T> points) |
Modifier and Type | Method and Description |
---|---|
static <T extends VpTreePoint<T>> |
buildVpTree(List<T> points) |
List<T> |
findNearbyPoints(T point,
double maxDistance) |
List<T> |
findNearbyPoints(T point,
int k) |
List<T> |
findNearByPointsK(T point,
int k)
Find top k nearest neighbors near point.
|
Counter<T> |
findNearByPointsWithDistancesK(T point,
int k)
Find top k nearest neighbors near point.
|
public Counter<T> findNearByPointsWithDistancesK(T point, int k)
point
- the point to get the nearest neighborsk
- the k to choose (if k < 0, an IllegalArgumentException is thrown)public List<T> findNearByPointsK(T point, int k)
point
- the point to get the nearest neighborsk
- the k to choose (if k < 0, an IllegalArgumentException is thrown)public static <T extends VpTreePoint<T>> VpTreeNode<T> buildVpTree(List<T> points)
Copyright © 2015. All rights reserved.