diff options
author | Jan Klemkow <j.klemkow@wemelug.de> | 2012-05-10 16:19:19 +0200 |
---|---|---|
committer | Jan Klemkow <j.klemkow@wemelug.de> | 2012-05-10 16:19:19 +0200 |
commit | e04d95746dab99aab09717ac2f64ff11656e5aee (patch) | |
tree | 75d32c117fe62f84e0bf56fa6ae79967d06fd7d5 | |
parent | 8eb3deab199414d9d15e01b190e9c37cc870edfd (diff) | |
download | dmc-e04d95746dab99aab09717ac2f64ff11656e5aee.tar.gz dmc-e04d95746dab99aab09717ac2f64ff11656e5aee.tar.bz2 dmc-e04d95746dab99aab09717ac2f64ff11656e5aee.zip |
run_tests: rotate err matrics.
-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, :)); |