class NearestNeighbor
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
NearestNeighbor.Cell |
(package private) static class |
NearestNeighbor.NearestHit
|
private static class |
NearestNeighbor.NearestVisitor |
Constructor and Description |
---|
NearestNeighbor() |
Modifier and Type | Method and Description |
---|---|
private static double |
approxBestDistance(byte[] minPackedValue,
byte[] maxPackedValue,
double pointLat,
double pointLon) |
private static double |
approxBestDistance(double minLat,
double maxLat,
double minLon,
double maxLon,
double pointLat,
double pointLon) |
static NearestNeighbor.NearestHit[] |
nearest(double pointLat,
double pointLon,
java.util.List<BKDReader> readers,
java.util.List<Bits> liveDocs,
java.util.List<java.lang.Integer> docBases,
int n) |
public static NearestNeighbor.NearestHit[] nearest(double pointLat, double pointLon, java.util.List<BKDReader> readers, java.util.List<Bits> liveDocs, java.util.List<java.lang.Integer> docBases, int n) throws java.io.IOException
java.io.IOException
private static double approxBestDistance(byte[] minPackedValue, byte[] maxPackedValue, double pointLat, double pointLon)
private static double approxBestDistance(double minLat, double maxLat, double minLon, double maxLon, double pointLat, double pointLon)