SHOGUN
v3.0.1
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
src
shogun
statistics
MMDKernelSelectionMax.cpp
Go to the documentation of this file.
1
/*
2
* This program is free software; you can redistribute it and/or modify
3
* it under the terms of the GNU General Public License as published by
4
* the Free Software Foundation; either version 3 of the License, or
5
* (at your option) any later version.
6
*
7
* Written (W) 2012-2013 Heiko Strathmann
8
*/
9
10
#include <
shogun/statistics/MMDKernelSelectionMax.h
>
11
#include <
shogun/statistics/KernelTwoSampleTestStatistic.h
>
12
13
using namespace
shogun;
14
15
CMMDKernelSelectionMax::CMMDKernelSelectionMax
() :
CMMDKernelSelection
()
16
{
17
}
18
19
CMMDKernelSelectionMax::CMMDKernelSelectionMax
(
20
CKernelTwoSampleTestStatistic
* mmd) :
CMMDKernelSelection
(mmd)
21
{
22
}
23
24
CMMDKernelSelectionMax::~CMMDKernelSelectionMax
()
25
{
26
}
27
28
SGVector<float64_t>
CMMDKernelSelectionMax::compute_measures
()
29
{
30
/* simply return vector with MMDs */
31
return
m_mmd
->
compute_statistic
(
true
);
32
}
shogun::CMMDKernelSelection::m_mmd
CKernelTwoSampleTestStatistic * m_mmd
Definition:
MMDKernelSelection.h:77
shogun::CMMDKernelSelection
Base class for kernel selection for MMD-based two-sample test statistic implementations (e...
Definition:
MMDKernelSelection.h:34
shogun::CMMDKernelSelectionMax::compute_measures
virtual SGVector< float64_t > compute_measures()
Definition:
MMDKernelSelectionMax.cpp:28
KernelTwoSampleTestStatistic.h
shogun::SGVector< float64_t >
MMDKernelSelectionMax.h
shogun::CKernelTwoSampleTestStatistic
Two sample test base class. Provides an interface for performing a two-sample test, i.e. Given samples from two distributions and , the null-hypothesis is: , the alternative hypothesis: .
Definition:
KernelTwoSampleTestStatistic.h:34
shogun::CKernelTwoSampleTestStatistic::compute_statistic
virtual SGVector< float64_t > compute_statistic(bool multiple_kernels)=0
shogun::CMMDKernelSelectionMax::CMMDKernelSelectionMax
CMMDKernelSelectionMax()
Definition:
MMDKernelSelectionMax.cpp:15
shogun::CMMDKernelSelectionMax::~CMMDKernelSelectionMax
virtual ~CMMDKernelSelectionMax()
Definition:
MMDKernelSelectionMax.cpp:24
SHOGUN
Machine Learning Toolbox - Documentation