From ccd77037ec2c202592ecda2e03648633da35f9a7 Mon Sep 17 00:00:00 2001 From: nojhan Date: Tue, 29 Nov 2011 15:06:19 +0100 Subject: [PATCH] bugfix: IQR should not be negative (oups :-) --- eo/src/utils/eoStat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eo/src/utils/eoStat.h b/eo/src/utils/eoStat.h index 916bcf439..32c3bf9f6 100644 --- a/eo/src/utils/eoStat.h +++ b/eo/src/utils/eoStat.h @@ -448,7 +448,7 @@ public: std::nth_element( pop.begin(), pop.begin()+quartile*3, pop.end() ); typename EOT::Fitness Q3 = pop[quartile*3].fitness(); - value() = Q1 - Q3; + value() = Q3 - Q1; } }