Use a closed interval when eliminating outliers from performance measurements

When choosing the samples that are not outliers we use a half-open interval
(outlier_min <= x < outlier_max). This causes all of the samples to be
discarded when the interquartile range is 0 because none of them are less
than outlier_max. Fix the problem and make the test more consistent by
using a closed interval (outliner_min <= x <= outlier_max).
This commit is contained in:
Jeff Muizelaar 2007-02-28 13:37:21 -05:00 committed by Carl Worth
parent d48f313701
commit 5f386bb15a

View file

@ -75,7 +75,7 @@ _cairo_stats_compute (cairo_stats_t *stats,
i = min_valid;
num_valid = 0;
while (i + num_valid < num_values && values[i+num_valid] < outlier_max)
while (i + num_valid < num_values && values[i+num_valid] <= outlier_max)
num_valid++;
stats->iterations = num_valid;