SHOGUN  v1.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
KernelLocallyLinearEmbedding.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 KERNELLOCALLYLINEAREMBEDDING_H_
12 #define KERNELLOCALLYLINEAREMBEDDING_H_
13 #include <shogun/lib/config.h>
14 #ifdef HAVE_LAPACK
18 #include <shogun/kernel/Kernel.h>
19 
20 namespace shogun
21 {
22 
23 class CFeatures;
24 class CKernel;
25 
43 {
44 public:
45 
48 
53 
56 
58  virtual CFeatures* apply(CFeatures* features);
59 
64 
66  virtual const char* get_name() const;
67 
69 protected:
70 
73  SGMatrix<int32_t> neighborhood_matrix);
74 
81  virtual SGMatrix<int32_t> get_neighborhood_matrix(SGMatrix<float64_t> kernel_matrix, int32_t k);
82 
83 
85 protected:
86 
90  static void* run_neighborhood_thread(void* p);
91 
95  static void* run_linearreconstruction_thread(void* p);
96 
97 };
98 }
99 
100 #endif /* HAVE_LAPACK */
101 #endif /* KERNELLOCALLYLINEAREMBEDDING_H_ */

SHOGUN Machine Learning Toolbox - Documentation