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>
|
|
|
|
*
|
2008-08-17 19:32:51 +00:00
|
|
|
* This file is part of FFmpeg.
|
|
|
|
*
|
|
|
|
* FFmpeg 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
|
|
|
*
|
2008-08-17 19:32:51 +00:00
|
|
|
* FFmpeg 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
|
2008-08-17 19:32:51 +00: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 15:28:12 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2009-02-01 02:00:19 +00:00
|
|
|
* @file libavutil/pca.h
|
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 */
|