Home | Develop | Download | Contact
FuncKernel.hpp
1 /*
2  * FuncKernel.hpp
3  *
4  * Copyright 2018 Fernando Pujaico Rivera <fernando.pujaico.rivera@gmail.com>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19  * MA 02110-1301, USA.
20  *
21  */
22 
30 #ifndef __PDS_FUNCKERNEL_HPP__
31 #define __PDS_FUNCKERNEL_HPP__
32 
33 
34 #include <Pds/Ra>
35 
45 namespace Pds{
46 
51 namespace Kernel{
52 
53 
80  Pds::Matrix Polynomial(const Pds::Matrix &X, unsigned int M);
81 
92  Pds::Matrix PolynomialId(unsigned int Ncol, unsigned int M);
93 
125  Pds::Matrix Gaussian(const Pds::Matrix &X, const Pds::Matrix &G, double Sigma=1.0);
126 
158  Pds::Matrix Gaussian(const Pds::Matrix &X, const Pds::Matrix &G, const std::vector<double> &Sigma);
159 
182  Pds::Matrix Gaussian( const Pds::Matrix &X,
183  const std::vector<Pds::Vector> &Mu,
184  const std::vector<Pds::Matrix> &Sinv);
185 
258  Pds::Matrix FourierSeries(const Pds::Matrix &X, const Pds::Vector &L, unsigned int K);
259 
264 } // namespace Kernel
265 
266 } // namespace Pds
267 
268 
273 #endif /* __PDS_FUNCKERNEL_HPP__ */
Pds::Matrix Polynomial(const Pds::Matrix &X, unsigned int M)
Crea una nueva matriz de "features" kernelizando de forma polinomial.
Pds::Matrix PolynomialId(unsigned int Ncol, unsigned int M)
Retorna una matriz donde cada fila tiene los indices de todos los monomios en las columnas de la matr...
Pds::Matrix FourierSeries(const Pds::Matrix &X, const Pds::Vector &L, unsigned int K)
Crea una nueva matriz de "features" kernelizando cada muestra en usando la serie de fourier.
Pds::Matrix Gaussian(const Pds::Matrix &X, const Pds::Matrix &G, double Sigma=1.0)
Crea una nueva matriz de "features" kernelizando de forma gaussiana.
Nombre de espacio para Pds (Procesamiento Digital de Senales)

Enlaces de interés

HomePage Bazaar Download Bug report Ayuda Developer Feed