pub trait Elem {
// Required methods
fn dimensions(&self) -> usize;
fn at(&self, i: usize) -> f64;
}Expand description
This is the trait you will want to implement for the types you wish to cluster.
Required Methods§
Sourcefn dimensions(&self) -> usize
fn dimensions(&self) -> usize
This is the number of dimensions (aka features) of the elements you wish to cluster using kmeans