pub fn check_min_samples(arr: &Array1<f64>, min_samples: usize) -> Result<()>
Check if array has at least n elements