OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
Kriging.h
Go to the documentation of this file.
1#pragma once
2#ifndef KRIGING_CLASS
3
4#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
5
6#include <iostream>
7#include <string>
8#include <vector>
9#include <list>
10
11#include <Python.h>
12#include <numpy/arrayobject.h>
13
14#include "KrigingParams.h"
15#include "IBase.h"
16#include "DataSet.h"
17
18using namespace std;
19using std::string;
20
21class Kriging : protected IBase
22{
23private:
24 KrigingParams params;
25 DataSet ds;
26 string modelStr;
27
28public:
29 Kriging(const std::string scriptName);
30 Kriging(const std::string scriptName, const KrigingParams params);
31 ~Kriging();
32
33 void setParameters(const KrigingParams params);
35 void setDataSet(DataSet ds);
37 void setModelStr(const string model);
38 string getModelStr();
39
40 void initializePython();
41
42 //void train(const char* scriptName, const char* funcName);
43 int predict();
44
45 // Inherited via ScriptBase
46 virtual int setDataset(std::list<std::vector<double>> d) override;
47 virtual int train() override;
48 virtual int predict(std::list<std::vector<double>> d) override;
49 virtual void getModel() override;
50
51
52 int testing();
53
54 int dsTest();
55
56 std::string outputs;
57
58};
59
60
61#endif
Definition Dataset.h:28
Definition IBase.h:6
std::string scriptName
Definition IBase.h:8
Definition Kriging.h:22
virtual void getModel() override
Definition Kriging.cpp:115
int dsTest()
Definition Kriging.cpp:597
void setModelStr(const string model)
Definition Kriging.cpp:24
string getModelStr()
Definition Kriging.cpp:23
KrigingParams getParameters()
Definition Kriging.cpp:20
Kriging(const std::string scriptName)
Definition Kriging.cpp:4
virtual int train() override
Definition Kriging.cpp:230
~Kriging()
Definition Kriging.cpp:11
void initializePython()
Definition Kriging.cpp:27
void setDataSet(DataSet ds)
Definition Kriging.cpp:18
virtual int setDataset(std::list< std::vector< double > > d) override
Definition Kriging.cpp:154
std::string outputs
Definition Kriging.h:56
DataSet getDataSet()
Definition Kriging.cpp:17
int testing()
Definition Kriging.cpp:485
void setParameters(const KrigingParams params)
Definition Kriging.cpp:21
int predict()
Definition Kriging.cpp:47
Definition KrigingParams.h:10
STL namespace.