10 #ifndef KERNELMEANMATCHING_H_ 
   11 #define KERNELMEANMATCHING_H_ 
   23 class CKernelMeanMatching: 
public CSGObject
 
   28     CKernelMeanMatching();
 
   31     CKernelMeanMatching(CKernel* kernel, SGVector<index_t> training_indices, SGVector<index_t> test_indices);
 
   34     CKernel* get_kernel()
 const { 
SG_REF(m_kernel); 
return m_kernel; }
 
   36     void set_kernel(CKernel* kernel) { 
SG_REF(kernel); 
SG_UNREF(m_kernel); m_kernel = kernel; }
 
   38     SGVector<index_t> get_training_indices()
 const { 
return m_training_indices; }
 
   40     void set_training_indices(SGVector<index_t> training_indices) { m_training_indices = training_indices; }
 
   42     SGVector<index_t> get_test_indices()
 const { 
return m_test_indices; }
 
   44     void set_test_indices(SGVector<index_t> test_indices) { m_test_indices = test_indices; }
 
   47     SGVector<float64_t> compute_weights();
 
   49     virtual const char* get_name()
 const { 
return "KernelMeanMatching"; }
 
   56     SGVector<index_t> m_training_indices;
 
   58     SGVector<index_t> m_test_indices;
 
   62 #endif //USE_GPL_SHOGUN 
all of classes and functions are contained in the shogun namespace