Class HaversineMetersEvaluator.HaversineDistance

  • All Implemented Interfaces:
    Serializable, org.apache.commons.math3.ml.distance.DistanceMeasure
    Enclosing class:
    HaversineMetersEvaluator

    public static class HaversineMetersEvaluator.HaversineDistance
    extends Object
    implements org.apache.commons.math3.ml.distance.DistanceMeasure
    See Also:
    Serialized Form
    • Constructor Detail

      • HaversineDistance

        public HaversineDistance()
    • Method Detail

      • compute

        public double compute​(double[] a,
                              double[] b)
                       throws org.apache.commons.math3.exception.DimensionMismatchException
        Specified by:
        compute in interface org.apache.commons.math3.ml.distance.DistanceMeasure
        Throws:
        org.apache.commons.math3.exception.DimensionMismatchException