BALL
1.4.79
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
ldaModel.h
Go to the documentation of this file.
1
// -*- Mode: C++; tab-width: 2; -*-
2
// vi: set ts=2:
3
//
4
//
5
6
#ifndef LDAMODEL
7
#define LDAMODEL
8
9
#ifndef CLASSIFICATION
10
#include <
BALL/QSAR/classificationModel.h
>
11
#endif
12
13
#ifndef STATISTICS
14
#include <
BALL/QSAR/statistics.h
>
15
#endif
16
17
namespace
BALL{
18
namespace
QSAR {
19
21
class
BALL_EXPORT
LDAModel
:
public
ClassificationModel
22
{
23
public
:
27
LDAModel
(
const
QSARData
& q);
28
29
~
LDAModel
();
31
32
36
void
train();
37
38
Eigen::VectorXd predict(
const
vector<double>& substance,
bool
transform=1);
39
40
void
setParameters(vector<double>& v);
41
42
vector<double> getParameters()
const
;
43
44
void
saveToFile(
string
filename);
45
46
void
readFromFile(
string
filename);
48
49
50
private
:
55
Eigen::MatrixXd sigma_;
56
57
58
double
lambda_;
59
61
vector<Eigen::MatrixXd > mean_vectors_;
63
};
64
}
65
}
66
67
#endif //LDAMODEL
statistics.h
classificationModel.h
BALL::QSAR::ClassificationModel
Definition:
classificationModel.h:26
BALL_EXPORT
#define BALL_EXPORT
Definition:
COMMON/global.h:50
BALL::QSAR::QSARData
Definition:
QSARData.h:55
BALL::QSAR::LDAModel
Definition:
ldaModel.h:21
Generated by
1.8.7