Merge pull request #336 from ivan-korolev:fix_relative_error_formula
This commit is contained in:
commit
dc11acf041
@ -335,7 +335,7 @@ static double evalEps(double expected, double actual, double _eps, ERROR_TYPE er
|
|||||||
if (err == ERROR_ABSOLUTE)
|
if (err == ERROR_ABSOLUTE)
|
||||||
return _eps;
|
return _eps;
|
||||||
else if (err == ERROR_RELATIVE)
|
else if (err == ERROR_RELATIVE)
|
||||||
return std::max(std::abs(expected), std::abs(actual)) * err;
|
return std::max(std::abs(expected), std::abs(actual)) * _eps;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user