public static double distance(SparseArray x, SparseArray y) {
        return Math.sqrt(squaredDistance(x, y));
    }
public static double distance ( SparseArray x , SparseArray y ) { return Math . sqrt ( squaredDistance ( x , y ) ) ; }
The Euclidean distance.