Testsuite / pac/trend-component-19-growth-comb: fix accuracy check

The test was using the comparison operator (>) on a dseries. This would give a
bogus (false) result under MATLAB, and would crash under Octave.
time-shift
Sébastien Villemot 2021-02-04 13:55:10 +01:00
parent 50a7507f9b
commit f094dc71f9
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 2 additions and 2 deletions

View File

@ -126,6 +126,6 @@ fprintf('Estimate of e_c_m: %f \n', e_c_m_iterative_ols)
fprintf('Estimate of c_z_1: %f \n', c_z_1_iterative_ols)
fprintf('Estimate of c_z_2: %f \n', c_z_2_iterative_ols)
if any(abs(resid_nls-resid_iterative_ols)>1e-4)
if any(abs(resid_nls-resid_iterative_ols).data > 1e-4)
error('Iterative OLS and NLS do not provide consistent results.')
end
end