summaryrefslogtreecommitdiff
path: root/run_tests.m
blob: 52f7f050e8eecf8a5f908296b18d2d3efcbedf1e (plain)
1
2
3
4
5
6
7
8
9
10
[p, q] = get_products();
quad = quad_error(q(29:42, :), mean_pred(q(1:28, :), 14));
total = total_error(q(29:42, :), mean_pred(q(1:28, :), 14));
printf('quad mean    : %9d\n', quad);
printf('total mean   : %9d\n', total);

quad = quad_error(p(29:42, :), regress_pred(p, q(1:28, :)));
total = total_error(p(29:42, :), regress_pred(p, q(1:28, :)));
printf('quad regress : %9d\n', quad);
printf('total regress: %9d\n', total);