summaryrefslogtreecommitdiff
path: root/lib/igt_stats.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2015-07-01 13:50:02 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2015-07-01 18:58:46 +0100
commit19135a34471ec4da4d7cc8493c371b8c38879f0b (patch)
treea5792c9e39c96d325d1522ee6391d1f0f08b2867 /lib/igt_stats.h
parent669b5da2bc4ef8d80405aef96ebb831a39608db4 (diff)
stats: Add the interquartile mean (IQM)
https://en.wikipedia.org/wiki/Interquartile_mean The IQM is a truncated mean and so is very similar to the scoring method used in sports that are evaluated by a panel of judges: discard the lowest and the highest scores; calculate the mean value of the remaining scores. It's useful to hide outliers in measurements (due to cold cache etc), without having to worry too much about the actual distribution. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/igt_stats.h')
-rw-r--r--lib/igt_stats.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/igt_stats.h b/lib/igt_stats.h
index dd04097f..00fb9b1f 100644
--- a/lib/igt_stats.h
+++ b/lib/igt_stats.h
@@ -61,6 +61,7 @@ uint64_t igt_stats_get_range(igt_stats_t *stats);
void igt_stats_get_quartiles(igt_stats_t *stats,
double *q1, double *q2, double *q3);
double igt_stats_get_iqr(igt_stats_t *stats);
+double igt_stats_get_iqm(igt_stats_t *stats);
double igt_stats_get_mean(igt_stats_t *stats);
double igt_stats_get_median(igt_stats_t *stats);
double igt_stats_get_variance(igt_stats_t *stats);