Mercurial > libavutil.hg
comparison lls.c @ 544:8e14aa88d6cb libavutil
Remove unused redefinition of av_log for test.
author | benoit |
---|---|
date | Thu, 07 Aug 2008 07:01:54 +0000 |
parents | 6335e6e63d91 |
children | 70bdd5501662 |
comparison
equal
deleted
inserted
replaced
543:0630410d4b3b | 544:8e14aa88d6cb |
---|---|
27 | 27 |
28 #include <math.h> | 28 #include <math.h> |
29 #include <string.h> | 29 #include <string.h> |
30 | 30 |
31 #include "lls.h" | 31 #include "lls.h" |
32 | |
33 #ifdef TEST | |
34 #define av_log(a,b,...) printf(__VA_ARGS__) | |
35 #endif | |
36 | 32 |
37 void av_init_lls(LLSModel *m, int indep_count){ | 33 void av_init_lls(LLSModel *m, int indep_count){ |
38 memset(m, 0, sizeof(LLSModel)); | 34 memset(m, 0, sizeof(LLSModel)); |
39 | 35 |
40 m->indep_count= indep_count; | 36 m->indep_count= indep_count; |
138 #endif | 134 #endif |
139 av_update_lls(&m, var, 0.99); | 135 av_update_lls(&m, var, 0.99); |
140 av_solve_lls(&m, 0.001, 0); | 136 av_solve_lls(&m, 0.001, 0); |
141 for(order=0; order<3; order++){ | 137 for(order=0; order<3; order++){ |
142 eval= av_evaluate_lls(&m, var+1, order); | 138 eval= av_evaluate_lls(&m, var+1, order); |
143 av_log(NULL, AV_LOG_DEBUG, "real:%f order:%d pred:%f var:%f coeffs:%f %f %f\n", | 139 printf("real:%f order:%d pred:%f var:%f coeffs:%f %f %f\n", |
144 var[0], order, eval, sqrt(m.variance[order] / (i+1)), | 140 var[0], order, eval, sqrt(m.variance[order] / (i+1)), |
145 m.coeff[order][0], m.coeff[order][1], m.coeff[order][2]); | 141 m.coeff[order][0], m.coeff[order][1], m.coeff[order][2]); |
146 } | 142 } |
147 } | 143 } |
148 return 0; | 144 return 0; |