Trait space::KnnFromBatch[][src]

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

Create a data structure from 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