求教Matlab使用过Kriging插值函数的大虾
答案:1 悬赏:60 手机版
解决时间 2021-11-25 14:35
- 提问者网友:人生佛魔见
- 2021-11-25 04:54
求教Matlab使用过Kriging插值函数的大虾
最佳答案
- 五星知识达人网友:零点过十分
- 2021-11-25 05:47
%克里金插值 Kriging interpolation
load data1
theta = [10 10]; lob = [1e-1 1e-1]; upb = [20 20];
[dmodel, perf] =dacefit(S, Y, @regpoly0, @corrgauss, theta, lob, upb)
X = gridsamp([0 0;100 100], 40);
[YX MSE] = predictor(X, dmodel);
X1 = reshape(X(:,1),40,40); X2 = reshape(X(:,2),40,40);
YX = reshape(YX, size(X1));
figure(1), mesh(X1, X2, YX)
hold on,
plot3(S(:,1),S(:,2),Y,'.k', 'MarkerSize',10)
hold off
load data1
theta = [10 10]; lob = [1e-1 1e-1]; upb = [20 20];
[dmodel, perf] =dacefit(S, Y, @regpoly0, @corrgauss, theta, lob, upb)
X = gridsamp([0 0;100 100], 40);
[YX MSE] = predictor(X, dmodel);
X1 = reshape(X(:,1),40,40); X2 = reshape(X(:,2),40,40);
YX = reshape(YX, size(X1));
figure(1), mesh(X1, X2, YX)
hold on,
plot3(S(:,1),S(:,2),Y,'.k', 'MarkerSize',10)
hold off
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯