diff --git a/eo/src/eoRanking.h b/eo/src/eoRanking.h index 5b7421be..3918cc53 100644 --- a/eo/src/eoRanking.h +++ b/eo/src/eoRanking.h @@ -81,7 +81,7 @@ public: for (unsigned i=0; i 1/[P(P-1)/2] } } else // exponent != 1 @@ -91,7 +91,7 @@ public: { int which = lookfor(rank[i], _pop); // value in in [0,1] - double tmp = ((double)(pSizeMinusOne-i))/pSizeMinusOne; + double tmp = ((double)(pSize-i))/pSize; // to the exponent, and back to [m,M] value()[which] = gamma*pow(tmp, exponent)+beta; }