pub trait IndexableData {
// Required methods
fn get_value(&self, row_index: usize, column_index: usize) -> f32;
fn get_num_columns(&self) -> usize;
fn get_num_rows(&self) -> usize;
fn create_cluster_summary(
&self,
row_index: usize,
) -> Box<dyn ClusterSummary>;
}Expand description
The trait you need to implement for the clustering algorithm to access your data.