[GRASS-dev] v.surf.idw: a improvement
E. Jorge Tizado
ejtizado at ono.com
Sun May 24 18:31:07 EDT 2009
Hi
A few lines permit add a new type of interpolation in v.surf.idw, the
exponential interpolation similar to "Geographically Weighted Regression":
weigth = exp( - distance^2 / bandwidth^2)
I attach the diff files, the core is
for (n = 0; n < nsearch; n++)
{
d = exp( - list[n].dist / bw );
sum1 += list[n].z * d;
sum2 += d;
}
P.S. idw = interpolation distance weight, better than inverse distance weight
to future more type of interpolations
--
E. Jorge Tizado
-------------- next part --------------
A non-text attachment was scrubbed...
Name: description.html.diff
Type: text/x-diff
Size: 2431 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20090525/b24aa78f/description.html.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.c.diff
Type: text/x-diff
Size: 3982 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20090525/b24aa78f/main.c.bin
More information about the grass-dev
mailing list