gsl_pca.hh
Go to the documentation of this file.
/* -*- mia-c++ -*-
*
* This file is part of MIA - a toolbox for medical image analysis
* Copyright (c) Leipzig, Madrid 1999-2017 Gert Wollny
*
* MIA is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with MIA; if not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef gslpp_pca_hh
#define gslpp_pca_hh
#include <mia/core/gsl_matrix.hh>
#include <mia/core/gsl_vector.hh>
namespace gsl
{
class EXPORT_GSL PCA
{
public:
typedef struct {
Vector eval;
Matrix evec;
} Result;
PCA(unsigned max_pc, double energy_thresh_ratio);
void set_eigenvalue_minimum(double min);
Result analyze(const Matrix& signal) const;
private:
unsigned m_max_pc;
double m_energy_thresh_ratio;
double m_eval_min;
};
}
#endif
gsl::Matrix
Definition gsl_matrix.hh:172
gsl::PCA::set_eigenvalue_minimum
void set_eigenvalue_minimum(double min)
gsl::PCA::PCA
PCA(unsigned max_pc, double energy_thresh_ratio)
gsl::PCA::analyze
Result analyze(const Matrix &signal) const
gsl::Vector
Definition gsl_vector.hh:39
EXPORT_GSL
#define EXPORT_GSL
Definition gsl_defines.hh:38
gsl_matrix.hh
gsl_vector.hh
gsl
Definition gsl_iterator.hh:29
gsl::PCA::Result
Definition gsl_pca.hh:51
gsl::PCA::Result::evec
Matrix evec
Definition gsl_pca.hh:53
gsl::PCA::Result::eval
Vector eval
Definition gsl_pca.hh:52