aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/lls.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2006-07-15 23:43:38 +0000
committerMichael Niedermayer <michaelni@gmx.at>2006-07-15 23:43:38 +0000
commit408ec4e2a6c3fb40e14ac4f0fb2fb9e40ff3e6a3 (patch)
tree981867ca181d59ac2849f28241be9185f272c59c /libavutil/lls.h
parent6ce704bbedac2745b51bfdb11af2431f05a1dc23 (diff)
downloadffmpeg-408ec4e2a6c3fb40e14ac4f0fb2fb9e40ff3e6a3.tar.gz
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
Diffstat (limited to 'libavutil/lls.h')
-rw-r--r--libavutil/lls.h7
1 files changed, 4 insertions, 3 deletions
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