changeset 557:9f3f45596ecf libavutil

Move context struct to c file.
author michael
date Sun, 17 Aug 2008 15:51:20 +0000
parents 78c5913787ca
children 9889c1cbf9e1
files pca.c pca.h
diffstat 2 files changed, 7 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/pca.c	Sun Aug 17 15:50:20 2008 +0000
+++ b/pca.c	Sun Aug 17 15:51:20 2008 +0000
@@ -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)
--- a/pca.h	Sun Aug 17 15:50:20 2008 +0000
+++ b/pca.h	Sun Aug 17 15:51:20 2008 +0000
@@ -27,11 +27,3 @@
 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;