From 408ec4e2a6c3fb40e14ac4f0fb2fb9e40ff3e6a3 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 15 Jul 2006 23:43:38 +0000 Subject: calculate all coefficients for several orders during cholesky factorization, the resulting coefficients are not strictly optimal though as there is a small difference in the autocorrelation matrixes which is ignored for the smaller orders Originally committed as revision 5758 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavutil/lls.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libavutil/lls.h') diff --git a/libavutil/lls.h b/libavutil/lls.h index a75095faf9..5c603e467a 100644 --- a/libavutil/lls.h +++ b/libavutil/lls.h @@ -30,13 +30,14 @@ */ typedef struct LLSModel{ double covariance[MAX_VARS+1][MAX_VARS+1]; - double coeff[MAX_VARS]; + double coeff[MAX_VARS][MAX_VARS]; + double variance[MAX_VARS]; int indep_count; }LLSModel; void av_init_lls(LLSModel *m, int indep_count); void av_update_lls(LLSModel *m, double *param, double decay); -double av_solve_lls(LLSModel *m, double threshold); -double av_evaluate_lls(LLSModel *m, double *param); +void av_solve_lls(LLSModel *m, double threshold, int min_order); +double av_evaluate_lls(LLSModel *m, double *param, int order); #endif -- cgit v1.2.3