2008-08-17 18:28:12 +03:00
|
|
|
/*
|
2009-01-28 02:16:05 +02:00
|
|
|
* principal component analysis (PCA)
|
2008-08-17 18:28:12 +03:00
|
|
|
* Copyright (c) 2004 Michael Niedermayer <michaelni@gmx.at>
|
|
|
|
*
|
2008-08-17 22:32:51 +03:00
|
|
|
* This file is part of FFmpeg.
|
|
|
|
*
|
|
|
|
* FFmpeg is free software; you can redistribute it and/or
|
2008-08-17 18:28:12 +03:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
2008-08-17 22:32:51 +03:00
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
2008-08-17 18:28:12 +03:00
|
|
|
*
|
2008-08-17 22:32:51 +03:00
|
|
|
* FFmpeg is distributed in the hope that it will be useful,
|
2008-08-17 18:28:12 +03: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
|
2008-08-17 22:32:51 +03:00
|
|
|
* License along with FFmpeg; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
2008-08-17 18:28:12 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2010-04-20 17:45:34 +03:00
|
|
|
* @file
|
2009-01-28 02:16:05 +02:00
|
|
|
* principal component analysis (PCA)
|
2008-08-17 18:28:12 +03:00
|
|
|
*/
|
|
|
|
|
2008-08-31 10:39:47 +03:00
|
|
|
#ifndef AVUTIL_PCA_H
|
|
|
|
#define AVUTIL_PCA_H
|
2008-08-17 18:53:12 +03:00
|
|
|
|
2008-08-17 18:50:20 +03: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 18:53:12 +03:00
|
|
|
|
2008-08-31 10:39:47 +03:00
|
|
|
#endif /* AVUTIL_PCA_H */
|