Correct tolerance value for sanity checks with ERROR_RELATIVE
authorAndrey Kamaev <andrey.kamaev@itseez.com>
Thu, 31 Jan 2013 11:21:14 +0000 (15:21 +0400)
committerAndrey Kamaev <andrey.kamaev@itseez.com>
Thu, 31 Jan 2013 11:47:14 +0000 (15:47 +0400)
commit4f1913ed268aa68ab6add34daaeb8d9f7b20c1b0
treeae6191a25fb5f196a511cc8a1c42bb155e484e79
parent53b0df87f1e9f0b06dcd0dcc99310195f3bbebb2
Correct tolerance value for sanity checks with ERROR_RELATIVE

Use min/max bounds instead of local value to calculate acceptance threshold.
Threshold based on local values somethimes does not work because cancellation
of big values may produce error bigger than local value.
modules/ts/src/ts_perf.cpp