Mercurial > libavutil.hg
comparison pca.c @ 557:9f3f45596ecf libavutil
Move context struct to c file.
author | michael |
---|---|
date | Sun, 17 Aug 2008 15:51:20 +0000 |
parents | 2fb78abcf725 |
children | daccf2fe1053 |
comparison
equal
deleted
inserted
replaced
556:78c5913787ca | 557:9f3f45596ecf |
---|---|
23 * Principal component analysis | 23 * Principal component analysis |
24 */ | 24 */ |
25 | 25 |
26 #include "common.h" | 26 #include "common.h" |
27 #include "pca.h" | 27 #include "pca.h" |
28 | |
29 typedef struct PCA{ | |
30 int count; | |
31 int n; | |
32 double *covariance; | |
33 double *mean; | |
34 }PCA; | |
28 | 35 |
29 PCA *ff_pca_init(int n){ | 36 PCA *ff_pca_init(int n){ |
30 PCA *pca; | 37 PCA *pca; |
31 if(n<=0) | 38 if(n<=0) |
32 return NULL; | 39 return NULL; |