[Numpy-discussion] adaptive interpolation on a regular 2d grid
Mon Aug 31 17:52:48 CDT 2009
On Sat, Aug 22, 2009 at 11:03, denis bzowy<firstname.lastname@example.org> wrote:
> here's a simple adaptive interpolator;
> drop me a line to chat about it
> adalin2( func, near, nx=300, ny=150, xstep=32, ystep=16,
> xrange=(0,1), yrange=(0,1), dtype=np.float, norm=abs )
> interpolate a function on a regular 2d grid:
> take func() where it changes rapidly, bilinear interpolate where it's smooth.
Looks good! Where can we get the code? Can this be specialized for 1D functions?
"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
-- Umberto Eco
More information about the NumPy-Discussion