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 DIFFUSIONMAPS_H_ 00012 #define DIFFUSIONMAPS_H_ 00013 #include <shogun/lib/config.h> 00014 #include <shogun/converter/EmbeddingConverter.h> 00015 #ifdef HAVE_LAPACK 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_kernel(CKernel* kernel); 00060 00064 void set_t(int32_t t); 00065 00069 int32_t get_t() const; 00070 00072 virtual const char* get_name() const; 00073 00074 protected: 00075 00077 void init(); 00078 00079 protected: 00080 00082 int32_t m_t; 00083 00084 }; 00085 } 00086 00087 #endif /* HAVE_LAPACK */ 00088 #endif /* DIFFUSIONMAPS_H_ */