File:Shepard interpolation.png

Summary

Description
English: Shepard's interpolation method for different values of the power parameter p.
Source Own work
Author Hankwang

Licensing

Public domain I, the copyright holder of this work, release this work into the public domain. This applies worldwide.
In some countries this may not be legally possible; if so:
I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.
Category:Self-published work#Shepard%20interpolation.pngCategory:PD-self#Shepard%20interpolation.png
Data generation (perl)
#!/usr/bin/perl -w

$n=40;
$p=0.1;
srand(6);
for ($i = 0; $i < $n; ++$i) {
    $x = rand(1);
    $y = rand(1);
    $v = (rand(1) < $p) ? 1 : 0;
    print("$x $y $v\n");
}
Category:Interpolation Category:Images with Perl source code
Category:Images with Perl source code Category:Interpolation Category:PD-self Category:PNG created with Gnuplot Category:Self-published work