Trait vrp_core::algorithms::gsom::Storage[][src]

pub trait Storage: Display + Send + Sync {
    type Item: Input;
    fn add(&mut self, input: Self::Item);
fn drain(&mut self) -> Vec<Self::Item>;
fn distance(&self, a: &[f64], b: &[f64]) -> f64; }

Represents input data storage.

Associated Types

type Item: Input[src]

An input type.

Loading content...

Required methods

fn add(&mut self, input: Self::Item)[src]

Adds an input to the storage.

fn drain(&mut self) -> Vec<Self::Item>[src]

Removes and returns all data from the storage.

fn distance(&self, a: &[f64], b: &[f64]) -> f64[src]

Returns a distance between two input weights.

Loading content...

Implementors

Loading content...