extra methods for uniform/distance weights on knn