diff options
author | Stefan Klug <stefan.klug@ideasonboard.com> | 2025-04-01 14:36:13 +0200 |
---|---|---|
committer | Stefan Klug <stefan.klug@ideasonboard.com> | 2025-04-03 12:36:07 +0200 |
commit | 80ac19a50795dea80c4bad33588e1fc6df1ef3e6 (patch) | |
tree | 3d338aa9345412085c487761aab1f3a9803cea78 /src/apps/common | |
parent | 3b9c432920e9ab0b28b5fe15b269e5301f30186f (diff) |
libipa: histogram: Fix interQuantileMean() for small ranges
The interQuantileMean() is supposed to return a weighted mean value
between two quantiles. This works for fine histograms, but fails for
coarse histograms and small quantile ranges because the weight is always
taken from the lower border of the bin.
Fix that by rewriting the algorithm to calculate a lower and upper bound
for every (partial) bin that goes into the mean calculation and weight
the bins by the middle of these bounds.
Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com>
Acked-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/apps/common')
0 files changed, 0 insertions, 0 deletions