SHOGUN  v1.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
LaplacianEigenmaps.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 Sergey Lisitsyn
8  * Copyright (C) 2011 Berlin Institute of Technology and Max-Planck-Society
9  */
10 
11 #ifndef LAPLACIANEIGENMAPS_H_
12 #define LAPLACIANEIGENMAPS_H_
13 #include <shogun/lib/config.h>
14 #ifdef HAVE_LAPACK
18 
19 namespace shogun
20 {
21 
22 class CFeatures;
23 class CDistance;
24 
48 {
49 public:
50 
53 
55  virtual ~CLaplacianEigenmaps();
56 
61  virtual CFeatures* apply(CFeatures* features);
62 
67  virtual CSimpleFeatures<float64_t>* embed_distance(CDistance* distance, CFeatures* features=NULL);
68 
72  void set_k(int32_t k);
73 
77  int32_t get_k() const;
78 
82  void set_tau(float64_t tau);
83 
87  float64_t get_tau() const;
88 
90  virtual const char* get_name() const;
91 
92 protected:
93 
95  void init();
96 
102  SGMatrix<float64_t> W_matrix);
103 
104 protected:
105 
107  int32_t m_k;
108 
111 
112 };
113 }
114 
115 #endif /* HAVE_LAPACK */
116 #endif /* LAPLACIANEIGENMAPS_H_ */

SHOGUN Machine Learning Toolbox - Documentation