SHOGUN  v3.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
MMDKernelSelectionMedian.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) 2013 Heiko Strathmann
00008  */
00009 
00010 #ifndef __MMDKERNELSELECTIONMEDIAN_H_
00011 #define __MMDKERNELSELECTIONMEDIAN_H_
00012 
00013 #include <shogun/statistics/MMDKernelSelection.h>
00014 
00015 namespace shogun
00016 {
00017 
00036 class CMMDKernelSelectionMedian: public CMMDKernelSelection
00037 {
00038 public:
00039 
00041     CMMDKernelSelectionMedian();
00042 
00051     CMMDKernelSelectionMedian(CKernelTwoSampleTestStatistic* mmd,
00052             index_t num_data_distance=1000);
00053 
00055     virtual ~CMMDKernelSelectionMedian();
00056 
00058     virtual SGVector<float64_t> compute_measures();
00059 
00065     virtual CKernel* select_kernel();
00066 
00068     const char* get_name() const { return "MMDKernelSelectionMedian"; }
00069 
00070 private:
00071     /* initialises and registers member variables */
00072     void init();
00073 
00074 protected:
00076     index_t m_num_data_distance;
00077 };
00078 
00079 }
00080 
00081 #endif /* __MMDKERNELSELECTIONMEDIAN_H_ */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation