Interpolation: Difference between revisions

From Met Dynamics
Jump to navigation Jump to search
md>Scott.Munro
m (1 revision imported)
(No difference)

Revision as of 04:43, 19 May 2023

Description

This article describes linear and cubic spline data interpolation methods.

Model theory

Under construction icon-blue.svg.png This section is currently under construction. Please check back later for updates and revisions.

Excel

The interpolation methods may be invoked from the Excel formula bar with the following function calls:

=mdInterp_Linear(known_xs as Range, known_ys as Range, xs as Range)

and

=mdInterp_CubicSpline(known_xs as Range, known_ys as Range, xs as Range)

Invoking the function with no arguments will print Help text associated with the model, including a link to this page.

The input parameters and calculation results are defined below in matrix notation, along with an example image showing the selection of the same cells and arrays in the Excel interface:

where:

  • is the number of data points
  • is the number of interpolation points
  • is an array of the known independent data values
  • is an array of the known dependent data values
  • is an array of the independent data values at which the dependant variable is to be interpolated
  • is an array of the interpolated dependant variable values
Figure 1. Example showing the selection of the known_xs (blue frame), known_ys (red frame), xs (purple frame), and Results (light blue frame) arrays in Excel.

References