BALL
1.4.2
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
BALL
QSAR
kpcrModel.h
Go to the documentation of this file.
1
/* kpcrModel.h
2
*
3
* Copyright (C) 2009 Marcel Schumann
4
*
5
* This file is part of QuEasy -- A Toolbox for Automated QSAR Model
6
* Construction and Validation.
7
* QuEasy is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 3 of the License, or (at
10
* your option) any later version.
11
*
12
* QuEasy is distributed in the hope that it will be useful, but
13
* WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, see <http://www.gnu.org/licenses/>.
19
*/
20
21
// -*- Mode: C++; tab-width: 2; -*-
22
// vi: set ts=2:
23
//
24
//
25
26
#ifndef KPCRMODEL
27
#define KPCRMODEL
28
29
#ifndef KMODEL
30
#include <
BALL/QSAR/kernelModel.h
>
31
#endif
32
33
#ifndef PCRMODEL
34
#include <
BALL/QSAR/pcrModel.h
>
35
#endif
36
37
#ifndef NLMODEL
38
#include <
BALL/QSAR/nonlinearModel.h
>
39
#endif
40
41
namespace
BALL
42
{
43
namespace
QSAR
44
{
46
class
BALL_EXPORT
KPCRModel
:
public
KernelModel
,
public
LatentVariableModel
47
{
48
public
:
52
KPCRModel
(
const
QSARData
& q,
int
k_type,
double
p1,
double
p2=-1);
53
54
KPCRModel
(
const
QSARData
& q,
Vector<double>
& w);
55
56
KPCRModel
(
const
QSARData
& q,
String
s1,
String
s2);
57
58
KPCRModel
(
const
QSARData
& q,
const
LinearModel
& lm,
int
column);
59
60
~
KPCRModel
();
62
63
68
void
setFracVar(
double
frac_var);
69
70
void
train();
71
72
void
setParameters(vector<double>& v);
73
74
vector<double> getParameters()
const
;
76
77
78
private
:
79
80
double
frac_var_
;
81
};
82
}
83
}
84
85
#endif //KPCRMODEL
Generated by
1.8.3.1