fix: x[i] -> xs[i] bug

This commit is contained in:
NunoSempere 2024-01-31 15:27:03 +01:00
parent 3e2eb69e3a
commit e971d6e1e2

View File

@ -336,9 +336,9 @@ void array_print_90_ci_histogram(double* xs, int n_samples, int n_bins){
// Fill the bins with sample counts
int below_min = 0, above_max = 0;
for (int i = 0; i < n_samples; i++) {
if(x[i] < min_value){
if(xs[i] < min_value){
below_min++;
}else if (x[i] > max_value){
}else if (xs[i] > max_value){
above_max++;
}else{
int bin_index = (int)((xs[i] - min_value) / bin_width);