feat: adds KMeans clustering algorithm

This commit is contained in:
Volodymyr Orlov
2020-02-20 18:43:24 -08:00
parent 4359d66bfa
commit 0e89113297
13 changed files with 637 additions and 84 deletions
-4
View File
@@ -12,10 +12,6 @@ pub trait Matrix: Clone + Debug {
fn to_row_vector(self) -> Self::RowVector;
fn from_array(nrows: usize, ncols: usize, values: &[f64]) -> Self;
fn from_vec(nrows: usize, ncols: usize, values: Vec<f64>) -> Self;
fn get(&self, row: usize, col: usize) -> f64;
fn get_row_as_vec(&self, row: usize) -> Vec<f64>;