Skip to main content

cluster_values

Function cluster_values 

Source
pub fn cluster_values(values: &[f32], threshold: f32) -> Vec<f32>
Expand description

Cluster values using a simple distance-based algorithm.

Groups values that are within threshold of each other and returns cluster centroids.