Trait space::KnnFromMetricAndBatch[][src]

pub trait KnnFromMetricAndBatch<M, B> {
    fn from_metric_and_batch(metric: M, batch: B) -> Self;
}
Expand description

Create a data structure from a metric and a batch of data points, such as a vector. For many algorithms, using batch initialization yields better results than inserting the points one at a time.

Required methods

Implementors