# HG changeset patch # User michael # Date 1218988220 0 # Node ID 78c5913787ca9a940cc85ba47eb356df5fef8cfd # Parent 2fb78abcf725bb981a03d4c7c0fa059656ea45ac Add prototypes to header (based on code by ramiro) diff -r 2fb78abcf725 -r 78c5913787ca pca.h --- a/pca.h Sun Aug 17 15:46:20 2008 +0000 +++ b/pca.h Sun Aug 17 15:50:20 2008 +0000 @@ -23,6 +23,12 @@ * Principal component analysis */ +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;