bugfix: IQR should not be negative (oups :-)
This commit is contained in:
parent
9decda0c6a
commit
ccd77037ec
1 changed files with 1 additions and 1 deletions
|
|
@ -448,7 +448,7 @@ public:
|
||||||
std::nth_element( pop.begin(), pop.begin()+quartile*3, pop.end() );
|
std::nth_element( pop.begin(), pop.begin()+quartile*3, pop.end() );
|
||||||
typename EOT::Fitness Q3 = pop[quartile*3].fitness();
|
typename EOT::Fitness Q3 = pop[quartile*3].fitness();
|
||||||
|
|
||||||
value() = Q1 - Q3;
|
value() = Q3 - Q1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue