public abstract class ShortNearestNeighbours extends Object implements NearestNeighbours<short[],float[],IntFloatPair>
| Constructor and Description |
|---|
ShortNearestNeighbours() |
| Modifier and Type | Method and Description |
|---|---|
static float |
distanceFunc(short[] qu,
short[] pnt)
Static method to find the sum-squared distance between
a query vector and a point.
|
static void |
distanceFunc(short[] qu,
short[][] pnts,
float[] dsq_out)
Static method to find the sum-squared distance between
a query vector and each of a set of points.
|
static float |
distanceFunc(ShortFVComparator distance,
short[] qu,
short[] pnt)
Static method to find a distance between
a query vector and a point.
|
static void |
distanceFunc(ShortFVComparator distance,
short[] qu,
short[][] pnts,
float[] 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 ShortNearestNeighbours()
public static void distanceFunc(short[] qu, short[][] pnts, float[] dsq_out)
qu - The query vector.pnts - The points to compare against.dsq_out - The resultant distances.public static float distanceFunc(short[] qu, short[] pnt)
qu - The query vector.pnt - The point to compare against.public static float distanceFunc(ShortFVComparator distance, short[] qu, short[] pnt)
distance - the distance measurequ - The query vector.pnt - The point to compare against.public static void distanceFunc(ShortFVComparator distance, short[] qu, short[][] pnts, float[] dsq_out)
distance - the distance measurequ - The query vector.pnts - The points to compare against.dsq_out - The resultant distances.public abstract int numDimensions()