From 6385b0f7ed9453c23724a126f65b167144622285 Mon Sep 17 00:00:00 2001 From: Ivan Korolev Date: Fri, 25 Jan 2013 11:19:38 +0400 Subject: [PATCH] Fixed a formula to calculate the relative error --- modules/ts/src/ts_perf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ts/src/ts_perf.cpp b/modules/ts/src/ts_perf.cpp index 1240aec817..b5c8145bbf 100644 --- a/modules/ts/src/ts_perf.cpp +++ b/modules/ts/src/ts_perf.cpp @@ -335,7 +335,7 @@ static double evalEps(double expected, double actual, double _eps, ERROR_TYPE er if (err == ERROR_ABSOLUTE) return _eps; 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; }