fix: correct typos in comments
This commit is contained in:
parent
5a536c7478
commit
f365a1ec57
2 changed files with 4 additions and 4 deletions
|
|
@ -81,7 +81,7 @@ public:
|
||||||
value().resize(pSize);
|
value().resize(pSize);
|
||||||
|
|
||||||
double beta = (2 - pressure) / pSize;
|
double beta = (2 - pressure) / pSize;
|
||||||
if (exponent == 1.0) // no need for exponetial then
|
if (exponent == 1.0) // no need for exponential then
|
||||||
{
|
{
|
||||||
double alpha = (2 * pressure - 2) / (pSize * pSizeMinusOne);
|
double alpha = (2 * pressure - 2) / (pSize * pSizeMinusOne);
|
||||||
for (unsigned i = 0; i < pSize; i++)
|
for (unsigned i = 0; i < pSize; i++)
|
||||||
|
|
@ -96,7 +96,7 @@ public:
|
||||||
for (unsigned i = 0; i < pSize; i++)
|
for (unsigned i = 0; i < pSize; i++)
|
||||||
{
|
{
|
||||||
int which = lookfor(rank[i], _pop);
|
int which = lookfor(rank[i], _pop);
|
||||||
// value in in [0,1]
|
// value is in [0,1]
|
||||||
double tmp = ((double)(pSize - i)) / pSize;
|
double tmp = ((double)(pSize - i)) / pSize;
|
||||||
// to the exponent, and back to [m,M]
|
// to the exponent, and back to [m,M]
|
||||||
value()[which] = gamma * pow(tmp, exponent) + beta;
|
value()[which] = gamma * pow(tmp, exponent) + beta;
|
||||||
|
|
|
||||||
|
|
@ -101,7 +101,7 @@ public:
|
||||||
indexMap[&_pop[i]] = i;
|
indexMap[&_pop[i]] = i;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (exponent == 1.0) // no need for exponetial then (linear case)
|
if (exponent == 1.0) // no need for exponential then (linear case)
|
||||||
{
|
{
|
||||||
for (unsigned i = 0; i < pSize; i++)
|
for (unsigned i = 0; i < pSize; i++)
|
||||||
{
|
{
|
||||||
|
|
@ -116,7 +116,7 @@ public:
|
||||||
{
|
{
|
||||||
const EOT *indiv = rank[i];
|
const EOT *indiv = rank[i];
|
||||||
int which = indexMap[indiv];
|
int which = indexMap[indiv];
|
||||||
// value in in [0,1]
|
// value is in [0,1]
|
||||||
double tmp = ((double)(pSize - i)) / pSize;
|
double tmp = ((double)(pSize - i)) / pSize;
|
||||||
// to the exponent, and back to [m,M]
|
// to the exponent, and back to [m,M]
|
||||||
value()[which] = cached_gamma * pow(tmp, exponent) + cached_beta;
|
value()[which] = cached_gamma * pow(tmp, exponent) + cached_beta;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue