-/*
- if (upper && upper_bin == lower_bin) {
- //p = ((double)(upper_bin + 1) * (double)lc->bin_width - (double)upper) / (double)lc->bin_width;
- p = (double)(upper_bin + 1) - (double)upper / (double)lc->bin_width;
- ERROR("interpolation 2: p=%lf, 1=%"PRIu64" (%.3f), 2=%"PRIu64" (%.3f), 3=%.3f (%.3f); upper_bin: %"PRIu64"",
- p,
- //1
- (upper_bin + 1) * lc->bin_width,
- CDTIME_T_TO_DOUBLE ((upper_bin + 1) * lc->bin_width),
- //2
- upper,
- CDTIME_T_TO_DOUBLE (upper),
- //3
- (double)lc->bin_width,
- CDTIME_T_TO_DOUBLE (lc->bin_width),
- upper_bin
- );
- sum -= p * lc->histogram[upper_bin];
- }
- else
- */