iRoCS Toolbox
1.1.0
src
libsvmtl
ModelOptimizer_linearNormal.hh
Go to the documentation of this file.
1
/**************************************************************************
2
*
3
* Copyright (C) 2004-2015 Olaf Ronneberger, Florian Pigorsch, Jörg Mechnich,
4
* Thorsten Falk
5
*
6
* Image Analysis Lab, University of Freiburg, Germany
7
*
8
* This program is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; either version 3 of the License, or
11
* (at your option) any later version.
12
*
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
17
*
18
* You should have received a copy of the GNU General Public License
19
* along with this program; if not, write to the Free Software Foundation,
20
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21
*
22
**************************************************************************/
23
24
#ifndef MODELOPTIMIZER_LINEARNORMAL_HH
25
#define MODELOPTIMIZER_LINEARNORMAL_HH
26
27
#ifdef HAVE_CONFIG_H
28
#include <config.hh>
29
#endif
30
31
#include "
BasicSVMAdapter.hh
"
32
33
namespace
svt
34
{
35
36
#ifndef ModelOptimizerlinearNormal
37
#define ModelOptimizerlinearNormal
38
39
template
<
typename
FV>
40
class
ModelOptimizer_linearNormal
41
{
42
public
:
43
template
<
typename
MODEL>
44
void
optimizeModel
(MODEL& model);
45
46
template
<
typename
TWO_MODEL>
47
FV*
optimizeTwoClassModel
(TWO_MODEL& model,
int
uid);
48
49
std::vector<FV*>
getReducedSV
()
50
{
51
return
_reducedSV;
52
}
53
private
:
54
std::vector<FV*> _reducedSV;
55
};
56
57
#include "ModelOptimizer_linearNormal.icc"
58
#endif
59
}
60
61
#endif
svt
Definition:
adjustUniqueIDs.hh:61
BasicSVMAdapter.hh
svt::ModelOptimizer_linearNormal::optimizeModel
void optimizeModel(MODEL &model)
Definition:
ModelOptimizer_linearNormal.hh:28
svt::ModelOptimizer_linearNormal::getReducedSV
std::vector< FV * > getReducedSV()
Definition:
ModelOptimizer_linearNormal.hh:49
svt::ModelOptimizer_linearNormal::optimizeTwoClassModel
FV * optimizeTwoClassModel(TWO_MODEL &model, int uid)
Definition:
ModelOptimizer_linearNormal.hh:46
svt::ModelOptimizer_linearNormal
Definition:
ModelOptimizer_linearNormal.hh:40
Generated on Wed Jul 31 2019 12:33:02 for iRoCS Toolbox by
1.8.13