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 KERNELLOCALTANGENTSPACEALIGNMENT_H_ 00012 #define KERNELLOCALTANGENTSPACEALIGNMENT_H_ 00013 #include <shogun/lib/config.h> 00014 #ifdef HAVE_LAPACK 00015 #include <shogun/converter/KernelLocallyLinearEmbedding.h> 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 00037 class CKernelLocalTangentSpaceAlignment: public CKernelLocallyLinearEmbedding 00038 { 00039 public: 00040 00042 CKernelLocalTangentSpaceAlignment(); 00043 00047 CKernelLocalTangentSpaceAlignment(CKernel* kernel); 00048 00050 virtual ~CKernelLocalTangentSpaceAlignment(); 00051 00053 virtual const char* get_name() const; 00054 00056 protected: 00057 00060 virtual SGMatrix<float64_t> construct_weight_matrix(SGMatrix<float64_t> kernel_matrix, 00061 SGMatrix<int32_t> neighborhood_matrix); 00062 00064 protected: 00065 00069 static void* run_kltsa_thread(void* p); 00070 00071 }; 00072 } 00073 00074 #endif /* HAVE_LAPACK */ 00075 #endif /* KERNELLOCALTANGENTSPACEALINGMENT_H_ */