views:

48

answers:

1

I need to use natural cubic spline interpolation in an iPhone app. Does anyone know of a class for Obj C or C that resembles this: http://www.ee.ucl.ac.uk/~mflanaga/java/CubicSpline.html

"performing an interpolation within a one dimensional array of data points, y = f(x), using a cubic spline."

A: 

Check out the Docs for UIBezierPath

twerdster
Bezier paths and cubic splines are different. Bezier path requires you to provide control points, cubic spline requires only points which are lying on the curve and it interpolates the curve.
Michal
Indeed. However 3rd order (i.e cubic) Bezier curves which have 2 control points can be made into nice smooth first derivative continuous curves with a fairly straightforward control point rule.
twerdster