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
parent
50a7507f9b
commit
f094dc71f9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue