forked from personal/squiggle.c
fix: x[i] -> xs[i] bug
This commit is contained in:
parent
3e2eb69e3a
commit
e971d6e1e2
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user