Re: 2D interpolation and differentiation problem



On Wed, 03 May 2006 09:55:59 +0000, Peter Spellucci wrote:

linear interpolation will give only very crude approximations to the
derivative which may also behave nonsmooth, hence plotting your
curves will give unsatisfactory results
there are several possibilities, also depending on the nature of your Z
values:
noisy or exact, smooth? I assume the first case. you could define a bicubic
spline on an artificial rectangular grid in the R,Theta plane and fit its
coefficients
against your data in the least squares sense.
most primitive, but simple: you begin with a crude grid,
solve for the spline, evaluate the deviations, if too large (above the noise
level) refine the grid and repeat.

http://www.netlib.org/dierckx
has a least squares fit for spline surfaces which does this even more tricky
using variable nodes (surfit.f)
the spline then allows you to evaluate the derivatives easily.
the directory contains software for this task too.
hth
peter

Thank you very much, this was apparently a very good place to ask my
question!
The dierkx library looks very useful, and would seem to avoid my having to
do a lot of work learning about the splines and coding stuff. Particularly
nice is its ability to fit with the simplest set of splines to a given
accuracy, and to cope with surface irregularities and noise.

Thanks, it certainly does help.

Paul Hilton

.



Relevant Pages

  • Re: Function and derivative interpolation
    ... This solves my problems with the derivatives. ... approximations is what they mean implicitly. ... Also, higher order finite difference ... spline model is a global construction. ...
    (comp.soft-sys.matlab)
  • Re: Optimization Problem
    ... > I'd like to fit data to, for lack of a better way of describing it, two ... > straight line, and on an adjacent interval, it is fit by a second ... I prefer not to define a spline using this formulation, ... % Here is the objective for lsqnonlin. ...
    (comp.soft-sys.matlab)
  • Re: Broach for motorcycle gear/brake splined shafts?
    ... If you fail to locate a ready-made broach, ... Turn the end of the splined shaft down to form a pilot at the ... minor diameter of the spline. ... It's a rubber-hammer press fit. ...
    (rec.crafts.metalworking)
  • Re: Convolution for Laplace Transform
    ... if the data for f and g are available on the same grid, ... interpolate the data for the two functions by piecewise polynomials independently, ... for example cubic splines, but using the same grid, then ... again by a spline. ...
    (sci.math.num-analysis)
  • Re: Which Scilab curve fitting approach is most applicable.
    ... Get a feel for pitfalls associated with changing sample rate. ... Do you just need to do cubic interpolation do you need to have smooth ... derivatives at the knots? ... A cubic spline that makes sure the the first derivative is ...
    (comp.dsp)