SHOGUN  v3.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
DiffusionMaps.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-2013 Sergey Lisitsyn
00008  * Copyright (C) 2011-2013 Berlin Institute of Technology and Max-Planck-Society
00009  */
00010 
00011 #ifndef DIFFUSIONMAPS_H_
00012 #define DIFFUSIONMAPS_H_
00013 #include <shogun/lib/config.h>
00014 #include <shogun/converter/EmbeddingConverter.h>
00015 #ifdef HAVE_EIGEN3
00016 #include <shogun/features/Features.h>
00017 #include <shogun/kernel/Kernel.h>
00018 
00019 namespace shogun
00020 {
00021 
00022 class CFeatures;
00023 class CKernel;
00024 
00040 class CDiffusionMaps: public CEmbeddingConverter
00041 {
00042 public:
00043 
00045     CDiffusionMaps();
00046 
00048     virtual ~CDiffusionMaps();
00049 
00053     virtual CFeatures* apply(CFeatures* features);
00054 
00059     virtual CDenseFeatures<float64_t>* embed_distance(CDistance* distance);
00060 
00064     void set_t(int32_t t);
00065 
00069     int32_t get_t() const;
00070 
00074     void set_width(float64_t width);
00075 
00079     float64_t get_width() const;
00080 
00082     virtual const char* get_name() const;
00083 
00084 protected:
00085 
00087     void init();
00088 
00089 protected:
00090 
00092     int32_t m_t;
00093 
00095     float64_t m_width;
00096 
00097 };
00098 }
00099 
00100 #endif /* HAVE_LAPACK */
00101 #endif /* DIFFUSIONMAPS_H_ */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation