2008-08-17 15:28:12 +00:00
|
|
|
/*
|
|
|
|
* Principal component analysis
|
|
|
|
* 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
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file pca.h
|
|
|
|
* Principal component analysis
|
|
|
|
*/
|
|
|
|
|
2008-08-17 15:53:12 +00:00
|
|
|
#ifndef FFMPEG_PCA_H
|
|
|
|
#define FFMPEG_PCA_H
|
|
|
|
|
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
|
|
|
|
|
|
|
#endif /* FFMPEG_PCA_H */
|