mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-11 16:32:58 +00:00
stats: Add a way to specify if the data set is a population or a sample
This changes how we compute the variance. We want an unbiased variance when reasoning about a sample. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
@@ -89,6 +89,7 @@ static void test_std_deviation(void)
|
||||
double mean, variance, std_deviation;
|
||||
|
||||
igt_stats_init(&stats, 8);
|
||||
igt_stats_set_population(&stats, true);
|
||||
|
||||
igt_stats_push(&stats, 2);
|
||||
igt_stats_push(&stats, 4);
|
||||
|
||||
Reference in New Issue
Block a user