Revision bc02bc86 libavutil/lls.c

View differences:

libavutil/lls.c
30 30

  
31 31
#include "lls.h"
32 32

  
33
#ifdef TEST
34
#define av_log(a,b,...) printf(__VA_ARGS__)
35
#endif
36

  
37 33
void av_init_lls(LLSModel *m, int indep_count){
38 34
    memset(m, 0, sizeof(LLSModel));
39 35

  
......
140 136
        av_solve_lls(&m, 0.001, 0);
141 137
        for(order=0; order<3; order++){
142 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 140
                var[0], order, eval, sqrt(m.variance[order] / (i+1)),
145 141
                m.coeff[order][0], m.coeff[order][1], m.coeff[order][2]);
146 142
        }

Also available in: Unified diff