2008-08-17 15:28:12 +00:00
|
|
|
/*
|
2009-01-28 00:16:05 +00:00
|
|
|
* principal component analysis (PCA)
|
2008-08-17 15:28:12 +00:00
|
|
|
* Copyright (c) 2004 Michael Niedermayer <michaelni@gmx.at>
|
|
|
|
*
|
2011-03-18 17:35:10 +00:00
|
|
|
* This file is part of Libav.
|
2008-08-17 19:32:51 +00:00
|
|
|
*
|
2011-03-18 17:35:10 +00:00
|
|
|
* Libav is free software; you can redistribute it and/or
|
2008-08-17 15:28:12 +00:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
2008-08-17 19:32:51 +00:00
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
2008-08-17 15:28:12 +00:00
|
|
|
*
|
2011-03-18 17:35:10 +00:00
|
|
|
* Libav is distributed in the hope that it will be useful,
|
2008-08-17 15:28:12 +00:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2011-03-18 17:35:10 +00:00
|
|
|
* License along with Libav; if not, write to the Free Software
|
2008-08-17 19:32:51 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
2008-08-17 15:28:12 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2010-04-20 14:45:34 +00:00
|
|
|
* @file
|
2009-01-28 00:16:05 +00:00
|
|
|
* principal component analysis (PCA)
|
2008-08-17 15:28:12 +00:00
|
|
|
*/
|
|
|
|
|
2008-08-31 07:39:47 +00:00
|
|
|
#ifndef AVUTIL_PCA_H
|
|
|
|
#define AVUTIL_PCA_H
|
2008-08-17 15:53:12 +00:00
|
|
|
|
2008-08-17 15:50:20 +00:00
|
|
|
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);
|
2008-08-17 15:53:12 +00:00
|
|
|
|
2008-08-31 07:39:47 +00:00
|
|
|
#endif /* AVUTIL_PCA_H */
|