LaplacianEigenmaps.h

Go to the documentation of this file.
00001 /*
00002  * This program is free software; you can redistribute it and/or modify
00003  * it under the terms of the GNU General Public License as published by
00004  * the Free Software Foundation; either version 3 of the License, or
00005  * (at your option) any later version.
00006  *
00007  * Written (W) 2011 Sergey Lisitsyn
00008  * Copyright (C) 2011 Berlin Institute of Technology and Max-Planck-Society
00009  */
00010 
00011 #ifndef LAPLACIANEIGENMAPS_H_
00012 #define LAPLACIANEIGENMAPS_H_
00013 #include <shogun/lib/config.h>
00014 #ifdef HAVE_LAPACK
00015 #include <shogun/converter/EmbeddingConverter.h>
00016 #include <shogun/features/Features.h>
00017 #include <shogun/distance/Distance.h>
00018 
00019 namespace shogun
00020 {
00021 
00022 class CFeatures;
00023 class CDistance;
00024 
00051 class CLaplacianEigenmaps: public CEmbeddingConverter
00052 {
00053 public:
00054 
00056     CLaplacianEigenmaps();
00057 
00059     virtual ~CLaplacianEigenmaps();
00060 
00065     virtual CFeatures* apply(CFeatures* features);
00066 
00071     virtual CDenseFeatures<float64_t>* embed_distance(CDistance* distance, CFeatures* features=NULL);
00072 
00076     void set_k(int32_t k);
00077 
00081     int32_t get_k() const;
00082 
00086     void set_tau(float64_t tau);
00087 
00091     float64_t get_tau() const;
00092 
00094     virtual const char* get_name() const;
00095 
00096 protected:
00097 
00099     void init();
00100 
00105     virtual CDenseFeatures<float64_t>* construct_embedding(CFeatures* features,
00106                                                             SGMatrix<float64_t> W_matrix);
00107 
00108 protected:
00109 
00111     int32_t m_k;
00112 
00114     float64_t m_tau;
00115 
00116 };
00117 }
00118 
00119 #endif /* HAVE_LAPACK */
00120 #endif /* LAPLACIANEIGENMAPS_H_ */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation