Function rustml::knn::scan [] [src]

pub fn scan<D, T: Float>(m: &Matrix<T>, example: &[T], k: usize, df: D) -> Option<Vec<usize>> where D: Fn(&[T], &[T]) -> T

Search the k nearest neighbours for the given example.