SHOGUN  v3.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
MMDKernelSelectionMax.cpp
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) 2012-2013 Heiko Strathmann
00008  */
00009 
00010 #include <shogun/statistics/MMDKernelSelectionMax.h>
00011 #include <shogun/statistics/KernelTwoSampleTestStatistic.h>
00012 
00013 using namespace shogun;
00014 
00015 CMMDKernelSelectionMax::CMMDKernelSelectionMax() : CMMDKernelSelection()
00016 {
00017 }
00018 
00019 CMMDKernelSelectionMax::CMMDKernelSelectionMax(
00020         CKernelTwoSampleTestStatistic* mmd) : CMMDKernelSelection(mmd)
00021 {
00022 }
00023 
00024 CMMDKernelSelectionMax::~CMMDKernelSelectionMax()
00025 {
00026 }
00027 
00028 SGVector<float64_t> CMMDKernelSelectionMax::compute_measures()
00029 {
00030     /* simply return vector with MMDs */
00031     return m_mmd->compute_statistic(true);
00032 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation