Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to call libKriging in C++ #261

Open
manuel76413 opened this issue Jun 8, 2023 · 1 comment
Open

how to call libKriging in C++ #261

manuel76413 opened this issue Jun 8, 2023 · 1 comment

Comments

@manuel76413
Copy link

manuel76413 commented Jun 8, 2023

I write a c++ demo program, but the prediction value is much different than origin value when use gauss kernel,
give me some advices, how to use this library .

Kriging ok = Kriging(y,X,"gauss");
auto ans = ok.predict(X1, true, true, true);
arma::Col prearray = std::get<0>(and);

but when I changed to matern3_2 the predict value is correct, tha't why?

@yannrichet
Copy link
Member

Hi. yes, it sounds strange...
Can you give some more details : dimension of X (be careful that for 1D, "gauss" is not recommended).
You can also provide example with Python (quite same syntax).
Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants