diff options
Diffstat (limited to 'run_tests.m')
-rw-r--r-- | run_tests.m | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/run_tests.m b/run_tests.m index 8df5f11..836a3fe 100644 --- a/run_tests.m +++ b/run_tests.m @@ -29,16 +29,16 @@ terr = [meterr reterr quterr loterr lqterr seterr raterr]; bar(qerr); bar(terr); -mean_err = sum(abs(real_data - mean_data))'; -regress_err = sum(abs(real_data - regress_data))'; -quad_err = sum(abs(real_data - quad_data))'; -log_err = sum(abs(real_data - log_data))'; -lq_err = sum(abs(real_data - lq_data))'; -sevenday_err = sum(abs(real_data - sevenday_data))'; -random_err = sum(abs(real_data - random_data))'; - -err = [mean_err regress_err quad_err log_err lq_err sevenday_err random_err]; -min_err = sum(min(err')); +mean_err = sum(abs(real_data - mean_data)); +regress_err = sum(abs(real_data - regress_data)); +quad_err = sum(abs(real_data - quad_data)); +log_err = sum(abs(real_data - log_data)); +lq_err = sum(abs(real_data - lq_data)); +sevenday_err = sum(abs(real_data - sevenday_data)); +random_err = sum(abs(real_data - random_data)); + +err = [mean_err;regress_err;quad_err;log_err;lq_err;sevenday_err;random_err]; +min_err = sum(min(err)); printf('global min. error: %d\n', min_err); [q2, removed] = remove_sevenday_frequency(q(1:14, :)); |