/**
 * The interface of all distance function
 */
public interface DistanceFunction {
    /**
     * Compute the distance between two given points.
     * @param a A double array representing one point's coordinate.
     * @param b A double array representing the other point's coordinate.
     * @return A double value representing the distance between two given points.
     */
    double compute(double[] a, double[] b);
}

@@ -415,12 +415,44 @@
 ble%5B%5D b)
+ throws LengthUnmatchedException
 ;%0A%7D%0A

add the LengthUnmatchedException in DistanceFunction class.