Spline Curve Fit

Two spline curve fit programs, SplineCurvFit1 and SplineCurvFit2, have been developed to curve fit data for algorithm definition. The programs, designed for the personal computer (Microsoft Windows), determine the equation coefficients for three dimensional functions, y = f (x,z). Data plotting software is included. PlotXYZ.

The link, (Spline Curve Fit Program), provides y = f(x) data plot samples from the software SplineCurvFit. 4th Order (cubic), 5th order and 6th order examples are shown.

Data analysis consulting and programming are available. An equation form can be developed that best fits any given data set. If programming is required, an executable program along with the C++ source code is provided. The source code allows the user to easily install curve fit functions into other software. For those interested in data analysis consulting, see link "Consulting Services for Data Analysis".

Hot Links

  • Spline Curve Fit Algorithm Example
  • Ordering Information
  • Other Software (Curve Fit XYZ Computer Program)
  • Consulting Services for Data Analysis

  • Computer program SplineCurvFit1 uses a cubic spline to fit data y = f (x). For polynomial
    y = f (x,z) function, as many as 5 different z values may be fit. Each z value curve uses the cubic spline fit. While variation with z are as follows:

    With 2 curves z value variation is a linear function
    With 3 curves z value variation is a quadratic function
    With 4 curves z value variation is a cubic function
    With 5 curves z value variation is a quartic function

    Computer program SplineCurvFit2 uses a cubic spline fit throughout to define the equation coefficients for the three dimensional function. As many as 48,000 data points may be input.

    An example of the form of the equation for y = f (x) of order 4 (cubic equation) is:

    y = a1 + a2x + a3x2 + a4x3

    Similarly, the form of the equation for y = f (x,z) of order 4 in x and z is:

    y = (a01 + a02z + a03z2 + a04z3) + (a11 + a12z + a13z2 + a14z3)x +
    (a21 + a22z + a23z2 + a24z3)x2 + (a31 + a32z + a33z2 + a34z3)x3

    An example of a three dimensional object suitable for curve fitting, using the SplineCurvFit2 program, is shown in the following XYZ plot.


    Six cross sections of the 3D object are shown at their respective Z station (Z1 thru Z6). The six 3D segments of the object, shown color coded, are defined by six cubic equations, with mating segments spline fit.

    Both programs provide an output file of equation coefficients for easy incorporation into programs utilizing curve fit algorithms. The listing order of the coefficients output file for y = f (x,z) cubic equation in x and z is as follows:

    a01,a02,a03,a04,a11, a12,a13,a14,
    a21,a22, a23,a24,a31,a32,a33,a34

    The developer of the software received a BS degree in Aeronautical Engineering from the University of Notre Dame. Experience in data analysis was acquired during 38 years in the aerospace industry.

    Web Page last modified (4/5/2008).

    If you have comments or suggestions, send E-mail to wlmeyerjr@hotmail.com

    SplineCurvFit programs and this page are Copyright (C) 1999 by William L. Meyer Jr.,
    3581 E. Elma St., Camarillo, CA, USA.

    1