forked from nnrepo/LSM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTrainings.h
46 lines (38 loc) · 921 Bytes
/
Trainings.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef TRAININGS
#define TRAININGS
#include <Eigen/Dense>
#include <eigen3/Eigen/src/Core/Matrix.h>
using namespace Eigen;
#include <vector>
using namespace std;
class Training;
/**
* @class IOPair
* @brief Class used to pair input/output data for training.
*
* @version 1.0
*/
class IOPair {
public:
Eigen::VectorXd _inputs;
Eigen::VectorXd _outputs;
IOPair(Training *training);
IOPair(unsigned int nInputs, unsigned int nOutputs);
IOPair(Training *training, double inputs[], double outputs[]) ;
};
/**
* @class Training
* @brief Class used to form a complete training dataset.
*
* @version 1.0
*/
class Training {
public:
unsigned int _nInputs;
unsigned int _nOutputs;
vector<IOPair> _trainings;
Training(unsigned int nInputs, unsigned int nOutputs);
void addTraining(IOPair training);
VectorXd generateOutputVector(unsigned int samplingInterval);
};
#endif