00001 #ifndef _theplu_yat_utility_kernel_pca_ 00002 #define _theplu_yat_utility_kernel_pca_ 00003 00004 // $Id: KernelPCA.h 2324 2010-09-21 21:19:25Z peter $ 00005 00006 /* 00007 Copyright (C) 2010 Peter Johansson 00008 00009 This file is part of the yat library, http://dev.thep.lu.se/yat 00010 00011 The yat library is free software; you can redistribute it and/or 00012 modify it under the terms of the GNU General Public License as 00013 published by the Free Software Foundation; either version 3 of the 00014 License, or (at your option) any later version. 00015 00016 The yat library is distributed in the hope that it will be useful, 00017 but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00019 General Public License for more details. 00020 00021 You should have received a copy of the GNU General Public License 00022 along with yat. If not, see <http://www.gnu.org/licenses/>. 00023 */ 00024 00025 namespace theplu { 00026 namespace yat { 00027 namespace classifier { 00028 class MatrixLookup; 00029 } 00030 namespace utility { 00031 00032 class Matrix; 00033 class Vector; 00034 00057 class KernelPCA 00058 { 00059 public: 00068 explicit KernelPCA(const Matrix& kernel); 00069 00073 virtual ~KernelPCA(void); 00074 00080 const Vector& eigenvalues(void) const; 00081 00087 const Matrix& projection(void) const; 00088 00089 private: 00090 class Impl; 00091 Impl* impl_; 00092 }; 00093 00094 }}} // of namespace utility, yat, and theplu 00095 00096 #endif