SHOGUN  3.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
KernelPCA.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 3 of the License, or
5  * (at your option) any later version.
6  *
7  * Written (W) 2011 Soeren Sonnenburg
8  * Copyright (C) 2011 Berlin Institute of Technology
9  */
10 
11 #ifndef KERNELPCA_H__
12 #define KERNELPCA_H__
13 #include <shogun/lib/config.h>
14 #ifdef HAVE_LAPACK
15 
18 #include <shogun/kernel/Kernel.h>
19 #include <shogun/lib/common.h>
20 
21 namespace shogun
22 {
23 
24 class CFeatures;
25 class CKernel;
26 
36 {
37 public:
40  CKernelPCA();
41 
45  CKernelPCA(CKernel* k);
46 
47  virtual ~CKernelPCA();
48 
50  virtual bool init(CFeatures* features);
52  virtual void cleanup();
53 
58 
62 
67 
72  {
74  }
75 
80  {
81  return m_bias_vector;
82  }
83 
85  virtual const char* get_name() const { return "KernelPCA"; }
86 
88  virtual EPreprocessorType get_type() const { return P_KERNELPCA; }
89 
90  protected:
91 
93  void init();
94 
95  protected:
96 
99 
102 
105 
108 
109 };
110 }
111 #endif
112 #endif

SHOGUN Machine Learning Toolbox - Documentation