docs: public void setDistanceFunction(DistanceFunction df) throws Exception {
      if (!(df instanceof EuclideanDistance))
        throw new Exception("KDTree currently only works with "
            + "EuclideanDistanceFunction.");
      m_DistanceFunction = m_EuclideanDistance = (EuclideanDistance) df;
    }