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 00028 class CDiffusionMaps: public CEmbeddingConverter 00029 { 00030 public: 00031 00033 CDiffusionMaps(); 00034 00036 virtual ~CDiffusionMaps(); 00037 00041 virtual CFeatures* apply(CFeatures* features); 00042 00047 virtual CSimpleFeatures<float64_t>* embed_kernel(CKernel* kernel); 00048 00052 void set_t(int32_t t); 00053 00057 int32_t get_t() const; 00058 00060 virtual const char* get_name() const; 00061 00062 protected: 00063 00065 void init(); 00066 00067 protected: 00068 00070 int32_t m_t; 00071 00072 }; 00073 } 00074 00075 #endif /* HAVE_LAPACK */ 00076 #endif /* DIFFUSIONMAPS_H_ */