Class NearestNeighbor


  • class NearestNeighbor
    extends java.lang.Object
    KNN search on top of 2D lat/lon indexed points.
    • Constructor Detail

      • NearestNeighbor

        NearestNeighbor()
    • Method Detail

      • approxBestDistance

        private static double approxBestDistance​(byte[] minPackedValue,
                                                 byte[] maxPackedValue,
                                                 double pointLat,
                                                 double pointLon)
      • approxBestDistance

        private static double approxBestDistance​(double minLat,
                                                 double maxLat,
                                                 double minLon,
                                                 double maxLon,
                                                 double pointLat,
                                                 double pointLon)