public abstract class DoubleNearestNeighbours extends Object implements NearestNeighbours<double[],double[],IntDoublePair>
| Constructor and Description |
|---|
DoubleNearestNeighbours() |
| Modifier and Type | Method and Description |
|---|---|
static double |
distanceFunc(double[] qu,
double[] pnt)
Static method to find the sum-squared distance between
a query vector and a point.
|
static void |
distanceFunc(double[] qu,
double[][] pnts,
double[] dsq_out)
Static method to find the sum-squared distance between
a query vector and each of a set of points.
|
static double |
distanceFunc(DoubleFVComparator distance,
double[] qu,
double[] pnt)
Static method to find a distance between
a query vector and a point.
|
static void |
distanceFunc(DoubleFVComparator distance,
double[] qu,
double[][] pnts,
double[] dsq_out)
Static method to find a distance between
a query vector and each of a set of points.
|
abstract int |
numDimensions()
Get the number of dimensions of each vector in the dataset
|
public DoubleNearestNeighbours()
public static void distanceFunc(double[] qu, double[][] pnts, double[] dsq_out)
qu - The query vector.pnts - The points to compare against.dsq_out - The resultant distances.public static double distanceFunc(double[] qu, double[] pnt)
qu - The query vector.pnt - The point to compare against.public static double distanceFunc(DoubleFVComparator distance, double[] qu, double[] pnt)
distance - the distance measurequ - The query vector.pnt - The point to compare against.public static void distanceFunc(DoubleFVComparator distance, double[] qu, double[][] pnts, double[] dsq_out)
distance - the distance measurequ - The query vector.pnts - The points to compare against.dsq_out - The resultant distances.public abstract int numDimensions()