Chapter 1 / Section 1.6
Interpolation and curve fitting of tabulated data
Linear interpolation
Between two tabulated points , :
Adequate for hydrostatic tables at 0.1 m draught steps, KN tables at 10° steps within the linear range, and material property tables. Error is proportional to the second derivative of the underlying curve times the square of the interval.
Quadratic (Lagrange) interpolation
Through three points :
Use for curved tables (KM vs draught near its minimum, GZ near its maximum, ) and for locating the maximum of a tabulated curve: the vertex of the parabola through three equally spaced points (spacing ) lies at
This is how the angle of maximum GZ is found from 10° ordinates (Tools page, IS Code check).
Cubic splines
Piecewise cubics with continuous first and second derivatives through all points; the standard method in hydrostatics software for curves of KN, areas and Bonjean curves. Do not hand-compute; be aware that splines can oscillate near sharp changes (deck-edge immersion, knuckles) — check against the tabulated values.
Extrapolation
Never extrapolate hydrostatic or KN tables beyond the tabulated range; the hull form changes (deck immersion, bilge emergence) make the curves non-polynomial.
Least-squares straight line (regression)
For points :
Through the origin (physically required, e.g. inclining moment vs ): . Goodness of fit: (Section 1.8). Plot the residuals; a systematic pattern means the model (straight line) is wrong, not the data.
Polynomial and power-law fits
Resistance and power data are often fitted as (straight line in log–log); hydrostatic coefficients are sometimes given as polynomials in draught. Fit the lowest degree that follows the physics; a 5th-degree polynomial through 7 points reproduces the noise, not the curve.
Interpolation in two variables (bilinear)
KN tables are two-dimensional (displacement × heel angle): interpolate linearly in displacement at each tabulated angle first, then in angle if needed.
Formulas
| Symbol | Description | Unit |
|---|---|---|
| Tabulated arguments bracketing x | as given | |
| Tabulated values | as given |
Result unit as given
Result unit as given
| Symbol | Description | Unit |
|---|---|---|
| Three consecutive ordinates with y_0 the largest tabulated | as given | |
| Spacing of the arguments | as given |
Result unit as given
Used to find the angle of maximum GZ from 10° ordinates.
| Symbol | Description | Unit |
|---|---|---|
| Slope | (unit y)/(unit x) | |
| Intercept | unit y |
Result unit -
Result unit -
Use when the physics requires y = 0 at x = 0 (inclining test: moment vs tan φ).
Result unit -
Examples
Interpolating KM from the hydrostatic table
Worked example
Problem
The example vessel's hydrostatic table (Section 4.8) gives = 6.21 m at T = 4.50 m, 6.08 m at 5.00 m and 5.92 m at 6.00 m. Estimate at T = 5.50 m by (a) linear interpolation between 5.00 and 6.00 m and (b) quadratic interpolation through the three points, and compare with the tabulated 5.98 m.
Angle of maximum GZ from 10° ordinates
Worked example
Problem
GZ values (Example 5.4): 0.485 m at 30°, 0.536 m at 40°, 0.446 m at 50°. Find the angle and value of maximum GZ.
References
Version 2 · last updated 19 Nov 2026 · Editor