pub fn cluster_values(values: &[f32], threshold: f32) -> Vec<f32>
Cluster values using a simple distance-based algorithm.
Groups values that are within threshold of each other and returns cluster centroids.
threshold