diff options
-rw-r--r-- | libavutil/pca.c | 7 | ||||
-rw-r--r-- | libavutil/pca.h | 8 |
2 files changed, 7 insertions, 8 deletions
diff --git a/libavutil/pca.c b/libavutil/pca.c index 6801d91..3690a4c 100644 --- a/libavutil/pca.c +++ b/libavutil/pca.c @@ -26,6 +26,13 @@ #include "common.h" #include "pca.h" +typedef struct PCA{ + int count; + int n; + double *covariance; + double *mean; +}PCA; + PCA *ff_pca_init(int n){ PCA *pca; if(n<=0) diff --git a/libavutil/pca.h b/libavutil/pca.h index c071c1a..57b03a9 100644 --- a/libavutil/pca.h +++ b/libavutil/pca.h @@ -27,11 +27,3 @@ struct PCA *ff_pca_init(int n); void ff_pca_free(struct PCA *pca); void ff_pca_add(struct PCA *pca, double *v); int ff_pca(struct PCA *pca, double *eigenvector, double *eigenvalue); - - -typedef struct PCA{ - int count; - int n; - double *covariance; - double *mean; -}PCA; |