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
bayesModel.h
Go to the documentation of this file.
1
/* bayesModel.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
27
#ifndef BAYESMODEL
28
#define BAYESMODEL
29
30
#include <
BALL/QSAR/classificationModel.h
>
31
32
33
namespace
BALL
34
{
35
namespace
QSAR
36
{
38
class
BALL_EXPORT
BayesModel
:
public
ClassificationModel
39
{
40
public
:
41
42
BayesModel
(
const
QSARData
& q);
43
44
virtual
bool
isTrained() = 0;
45
48
virtual
vector<double> calculateProbabilities(
int
activitiy_index,
int
feature_index,
double
feature_value) = 0;
49
51
virtual
int
getNoResponseVariables() = 0;
52
53
54
protected
:
56
double
min_prob_diff_
;
57
59
double
undef_act_class_id_
;
60
61
};
62
}
63
}
64
65
#endif //BAYESMODEL
Generated by
1.8.3.1