BALL 1.5.0
oplsModel.h
Go to the documentation of this file.
1// -*- Mode: C++; tab-width: 2; -*-
2// vi: set ts=2:
3//
4//
5
6#ifndef OPLSMODEL
7#define OPLSMODEL
8
9#ifndef PLSMODEL
10#include <BALL/QSAR/plsModel.h>
11#endif
12
13
14
15namespace BALL
16{
17 namespace QSAR
18 {
20 {
21 public:
26
28 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
30
31
35
37 void train();
38
39 const Eigen::MatrixXd* getWOrtho();
40
41 const Eigen::MatrixXd* getTOrtho();
42
44
46
47 bool optimizeParameters(int k, int no_steps);
48 //RowVector predict(const vector<double>& substance, bool transform);
49
50 void setParameters(vector<double>& v);
51
52 vector<double> getParameters() const;
54
55
56 private:
60 Eigen::MatrixXd T_ortho_;
61 Eigen::MatrixXd W_ortho_;
62
63 int no_ortho_components_;
65 };
66 }
67}
68
69
70#endif // OPLSMODEL
Definition: constants.h:13
BALL_EXTERN_VARIABLE const double k
Definition: constants.h:93
OPLSModel(const QSARData &q)
void setNoOrthoComponents(int d)
const Eigen::MatrixXd * getWOrtho()
void setParameters(vector< double > &v)
bool optimizeParameters(int k, int no_steps)
vector< double > getParameters() const
const Eigen::MatrixXd * getTOrtho()
#define BALL_EXPORT
Definition: COMMON/global.h:50