Shepard interpolation algorithm
$begingroup$
Classic way to get a value based on other points in Shepard (Inverse distance weighting) method:
$$F(x,y) = Sigma_{k=1}^{N}w_{k}(x,y)f_{k} / Sigma_{k=1}^{N}w_{k}(x,y) $$
where $w$ can be compute as some expression with metric (euclidian for example).
The paper Scattered Data Interpolation: Tests of Some Methods by Franke tells (p.5) that another way to get needed value is compute follows:
$$F(x,y) = Sigma_{k=1}^{N}w_{k} [f_{k} + frac{partial f}{partial x}_{k}(x-x_{k}) + frac{partial f}{partial y}_{k}(y-y_{k})]/ Sigma_{k=1}^{N}w_{k}(x,y)$$
But I do not understand, how can I coumpute this. For example I have sample:
$$mathbf{x} = [0, 2, 4] \
mathbf{y} = [3, 6, 5]
$$
and I need to get interpolated value for point $a = 1$.
How can I do this?
interpolation
$endgroup$
|
show 2 more comments
$begingroup$
Classic way to get a value based on other points in Shepard (Inverse distance weighting) method:
$$F(x,y) = Sigma_{k=1}^{N}w_{k}(x,y)f_{k} / Sigma_{k=1}^{N}w_{k}(x,y) $$
where $w$ can be compute as some expression with metric (euclidian for example).
The paper Scattered Data Interpolation: Tests of Some Methods by Franke tells (p.5) that another way to get needed value is compute follows:
$$F(x,y) = Sigma_{k=1}^{N}w_{k} [f_{k} + frac{partial f}{partial x}_{k}(x-x_{k}) + frac{partial f}{partial y}_{k}(y-y_{k})]/ Sigma_{k=1}^{N}w_{k}(x,y)$$
But I do not understand, how can I coumpute this. For example I have sample:
$$mathbf{x} = [0, 2, 4] \
mathbf{y} = [3, 6, 5]
$$
and I need to get interpolated value for point $a = 1$.
How can I do this?
interpolation
$endgroup$
$begingroup$
The second formula assumes that you know the gradient at every data point. By the way, your example does not describe samples of a bivariate function.
$endgroup$
– Yves Daoust
Jan 10 at 10:22
$begingroup$
Ok, I understand that. Is it mean that I cant reduce the second formula for my example?
$endgroup$
– Vasya Pravdin
Jan 10 at 10:31
$begingroup$
What do you mean ?
$endgroup$
– Yves Daoust
Jan 10 at 11:16
$begingroup$
Remove from second formula df/dy(y-y_k) and use only with (f_k + df/dx(x-x_k))?
$endgroup$
– Vasya Pravdin
Jan 10 at 13:33
$begingroup$
Are you trying to perform 1D interpolation ?
$endgroup$
– Yves Daoust
Jan 10 at 13:54
|
show 2 more comments
$begingroup$
Classic way to get a value based on other points in Shepard (Inverse distance weighting) method:
$$F(x,y) = Sigma_{k=1}^{N}w_{k}(x,y)f_{k} / Sigma_{k=1}^{N}w_{k}(x,y) $$
where $w$ can be compute as some expression with metric (euclidian for example).
The paper Scattered Data Interpolation: Tests of Some Methods by Franke tells (p.5) that another way to get needed value is compute follows:
$$F(x,y) = Sigma_{k=1}^{N}w_{k} [f_{k} + frac{partial f}{partial x}_{k}(x-x_{k}) + frac{partial f}{partial y}_{k}(y-y_{k})]/ Sigma_{k=1}^{N}w_{k}(x,y)$$
But I do not understand, how can I coumpute this. For example I have sample:
$$mathbf{x} = [0, 2, 4] \
mathbf{y} = [3, 6, 5]
$$
and I need to get interpolated value for point $a = 1$.
How can I do this?
interpolation
$endgroup$
Classic way to get a value based on other points in Shepard (Inverse distance weighting) method:
$$F(x,y) = Sigma_{k=1}^{N}w_{k}(x,y)f_{k} / Sigma_{k=1}^{N}w_{k}(x,y) $$
where $w$ can be compute as some expression with metric (euclidian for example).
The paper Scattered Data Interpolation: Tests of Some Methods by Franke tells (p.5) that another way to get needed value is compute follows:
$$F(x,y) = Sigma_{k=1}^{N}w_{k} [f_{k} + frac{partial f}{partial x}_{k}(x-x_{k}) + frac{partial f}{partial y}_{k}(y-y_{k})]/ Sigma_{k=1}^{N}w_{k}(x,y)$$
But I do not understand, how can I coumpute this. For example I have sample:
$$mathbf{x} = [0, 2, 4] \
mathbf{y} = [3, 6, 5]
$$
and I need to get interpolated value for point $a = 1$.
How can I do this?
interpolation
interpolation
asked Jan 10 at 10:17
Vasya PravdinVasya Pravdin
83
83
$begingroup$
The second formula assumes that you know the gradient at every data point. By the way, your example does not describe samples of a bivariate function.
$endgroup$
– Yves Daoust
Jan 10 at 10:22
$begingroup$
Ok, I understand that. Is it mean that I cant reduce the second formula for my example?
$endgroup$
– Vasya Pravdin
Jan 10 at 10:31
$begingroup$
What do you mean ?
$endgroup$
– Yves Daoust
Jan 10 at 11:16
$begingroup$
Remove from second formula df/dy(y-y_k) and use only with (f_k + df/dx(x-x_k))?
$endgroup$
– Vasya Pravdin
Jan 10 at 13:33
$begingroup$
Are you trying to perform 1D interpolation ?
$endgroup$
– Yves Daoust
Jan 10 at 13:54
|
show 2 more comments
$begingroup$
The second formula assumes that you know the gradient at every data point. By the way, your example does not describe samples of a bivariate function.
$endgroup$
– Yves Daoust
Jan 10 at 10:22
$begingroup$
Ok, I understand that. Is it mean that I cant reduce the second formula for my example?
$endgroup$
– Vasya Pravdin
Jan 10 at 10:31
$begingroup$
What do you mean ?
$endgroup$
– Yves Daoust
Jan 10 at 11:16
$begingroup$
Remove from second formula df/dy(y-y_k) and use only with (f_k + df/dx(x-x_k))?
$endgroup$
– Vasya Pravdin
Jan 10 at 13:33
$begingroup$
Are you trying to perform 1D interpolation ?
$endgroup$
– Yves Daoust
Jan 10 at 13:54
$begingroup$
The second formula assumes that you know the gradient at every data point. By the way, your example does not describe samples of a bivariate function.
$endgroup$
– Yves Daoust
Jan 10 at 10:22
$begingroup$
The second formula assumes that you know the gradient at every data point. By the way, your example does not describe samples of a bivariate function.
$endgroup$
– Yves Daoust
Jan 10 at 10:22
$begingroup$
Ok, I understand that. Is it mean that I cant reduce the second formula for my example?
$endgroup$
– Vasya Pravdin
Jan 10 at 10:31
$begingroup$
Ok, I understand that. Is it mean that I cant reduce the second formula for my example?
$endgroup$
– Vasya Pravdin
Jan 10 at 10:31
$begingroup$
What do you mean ?
$endgroup$
– Yves Daoust
Jan 10 at 11:16
$begingroup$
What do you mean ?
$endgroup$
– Yves Daoust
Jan 10 at 11:16
$begingroup$
Remove from second formula df/dy(y-y_k) and use only with (f_k + df/dx(x-x_k))?
$endgroup$
– Vasya Pravdin
Jan 10 at 13:33
$begingroup$
Remove from second formula df/dy(y-y_k) and use only with (f_k + df/dx(x-x_k))?
$endgroup$
– Vasya Pravdin
Jan 10 at 13:33
$begingroup$
Are you trying to perform 1D interpolation ?
$endgroup$
– Yves Daoust
Jan 10 at 13:54
$begingroup$
Are you trying to perform 1D interpolation ?
$endgroup$
– Yves Daoust
Jan 10 at 13:54
|
show 2 more comments
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3068464%2fshepard-interpolation-algorithm%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3068464%2fshepard-interpolation-algorithm%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
$begingroup$
The second formula assumes that you know the gradient at every data point. By the way, your example does not describe samples of a bivariate function.
$endgroup$
– Yves Daoust
Jan 10 at 10:22
$begingroup$
Ok, I understand that. Is it mean that I cant reduce the second formula for my example?
$endgroup$
– Vasya Pravdin
Jan 10 at 10:31
$begingroup$
What do you mean ?
$endgroup$
– Yves Daoust
Jan 10 at 11:16
$begingroup$
Remove from second formula df/dy(y-y_k) and use only with (f_k + df/dx(x-x_k))?
$endgroup$
– Vasya Pravdin
Jan 10 at 13:33
$begingroup$
Are you trying to perform 1D interpolation ?
$endgroup$
– Yves Daoust
Jan 10 at 13:54