OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
KrigingParams.h
Go to the documentation of this file.
1#pragma once
2#ifndef KRIGING_PARAMETER_CLASS
3
4#include <iostream>
5#include <string>
6
7using namespace std;
8using std::string;
9
11public:
14 theta = params->theta;
15 nugget = params->nugget;
16 corr = params->corr;
17 poly = params->poly;
18 }
19
20 double theta = 0.01;
21 double nugget = 2.220446049250313e-14;
22 // Correlation function type = [‘abs_exp’, ‘squar_exp’, ‘act_exp’, ‘matern52’, ‘matern32’] default = squar_exp
23 string corr = "squar_exp"; // ['abs_exp', 'squar_exp', 'matern52', 'matern32']
24 // Regression function type = [‘constant’, ‘linear’, ‘quadratic’] default = constant
25 string poly = "linear";
26
27 void printIt() {
28 cout << "\n\nKriging Parameters: \n"
29 << "theta: \t\t" << theta
30 << "\n"
31 << "nugget: \t" << nugget
32 << "\n"
33 << "corr: \t\t" << corr
34 << "\n"
35 << "poly: \t\t" << poly
36 << "\n\n";
37 };
38
39 std::string toString() {
40 return "\n\nKriging Parameters: \ntheta: \t\t" + std::to_string(theta)
41 + "\n"
42 + "nugget: \t" + std::to_string(nugget)
43 + "\n"
44 + "corr: \t\t" + corr
45 + "\n"
46 + "poly: \t\t" + poly
47 + "\n\n";
48 };
49};
50
51#endif
Definition KrigingParams.h:10
double theta
Definition KrigingParams.h:20
double nugget
Definition KrigingParams.h:21
KrigingParams(KrigingParams *params)
Definition KrigingParams.h:13
std::string toString()
Definition KrigingParams.h:39
void printIt()
Definition KrigingParams.h:27
string corr
Definition KrigingParams.h:23
string poly
Definition KrigingParams.h:25
KrigingParams()
Definition KrigingParams.h:12
STL namespace.