Monotone cubic interpolation

Monotone cubic interpolation

In the mathematical subfield of numerical analysis, monotone cubic interpolation is a variant of cubic interpolation that preserves monotonicity of the data set being interpolated.

Monotonicity is preserved by linear interpolation but not guaranteed by cubic interpolation.

Contents

Monotone cubic Hermite interpolation

Example showing cubic and monotone cubic interpolation of a monotone data set. Note that the red line is not monotone.

Monotone interpolation can be accomplished using cubic Hermite spline with the tangents mi modified to ensure the monotonicity of the resulting Hermite spline.

Interpolant selection

There are several ways of selecting interpolating tangents for each data point. This section will outline the use of the Fritsch–Carlson method.

Let the data points be (xk,yk) for k = 1,...,n

  1. Compute the slopes of the secant lines between successive points:

    \Delta_k =\frac{y_{k+1}-y_k}{x_{k+1}-x_k}

    for k=1,\dots,n-1.
  2. Initialize the tangents at every data point as the average of the secants,

    m_k = \frac{\Delta_{k-1}+\Delta_k}{2}

    for k=2,\dots,n-1; these may be updated in further steps. For the endpoints, use one-sided differences:

    m_1 = \Delta_1 \quad \text{and} \quad m_n = \Delta_{n-1}

  3. For k=1,\dots,n-1, if Δk = 0 (if two successive yk = yk + 1 are equal), then set mk = mk + 1 = 0, as the spline connecting these points must be flat to preserve monotonicity. Ignore step 4 and 5 for those k.
  4. Let αk = mk / Δk and βk = mk + 1 / Δk. If α or β are computed to be zero, then the input data points are not strictly monotone. In such cases, piecewise monotone curves can still be generated by choosing mk = mk + 1 = 0, although global strict monotonicity is not possible.
  5. To prevent overshoot and ensure monotonicity, the function

    \phi(\alpha, \beta) = \alpha - \frac{(2 \alpha + \beta - 3)^2}{3(\alpha + \beta - 2)}

    must have a value greater than (or equal to, if monotonicity need not be strict) zero. One simple way to satisfy this constraint is to restrict the magnitude of vector kk) to a circle of radius 3. That is, if \alpha_k^2 + \beta_k^2 > 9, then set mk = τkαkΔk and mk + 1 = τkβkΔk where \tau_k = \frac{3}{\sqrt{\alpha_k^2 + \beta_k^2}}.

Note that only one pass of the algorithm is required.

Cubic interpolation

After the preprocessing, evaluation of the interpolated spline is equivalent to cubic Hermite spline, using the data xk, yk, and mk for k = 1,...,n.

To evaluate at x, find the smallest value larger than x, xupper, and the largest value smaller than x, xlower, among xk such that x_\text{lower} \leq x \leq x_\text{upper}. Calculate

h = xupperxlower and t = \frac{x - x_\text{lower}}{h}

then the interpolant is

finterpolated(x) = ylowerh00(t) + hmlowerh10(t) + yupperh01(t) + hmupperh11(t)

where hii are the basis functions for the cubic Hermite spline.

External links

References

  • Fritsch, F. N.; Carlson, R. E. (1980). "Monotone Piecewise Cubic Interpolation". SIAM Journal on Numerical Analysis (SIAM) 17 (2): 238–246. doi:10.1137/0717021. 

Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать курсовую

Look at other dictionaries:

  • Monotone cubic interpolation — Эта статья предлагается к удалению. Пояснение причин и соответствующее обсуждение вы можете найти на странице Википедия:К удалению/23 декабря 2012. Пока пр …   Википедия

  • Cubic Hermite spline — In the mathematical subfield of numerical analysis a cubic Hermite spline (also called cspline), named in honor of Charles Hermite, is a third degree spline with each polynomial of the spline in Hermite form. The Hermite form consists of two… …   Wikipedia

  • Spline interpolation — See also: Spline (mathematics) In the mathematical field of numerical analysis, spline interpolation is a form of interpolation where the interpolant is a special type of piecewise polynomial called a spline. Spline interpolation is preferred… …   Wikipedia

  • List of numerical analysis topics — This is a list of numerical analysis topics, by Wikipedia page. Contents 1 General 2 Error 3 Elementary and special functions 4 Numerical linear algebra …   Wikipedia

  • List of mathematics articles (M) — NOTOC M M estimator M group M matrix M separation M set M. C. Escher s legacy M. Riesz extension theorem M/M/1 model Maass wave form Mac Lane s planarity criterion Macaulay brackets Macbeath surface MacCormack method Macdonald polynomial Machin… …   Wikipedia

  • Monotonic function — Monotonicity redirects here. For information on monotonicity as it pertains to voting systems, see monotonicity criterion. Monotonic redirects here. For other uses, see Monotone (disambiguation). Figure 1. A monotonically increasing function (it… …   Wikipedia

  • Liste de théorèmes — par ordre alphabétique. Pour l établissement de l ordre alphabétique, il a été convenu ce qui suit : Si le nom du théorème comprend des noms de mathématiciens ou de physiciens, on se base sur le premier nom propre cité. Si le nom du théorème …   Wikipédia en Français

  • Спираль — Архимедова спираль …   Википедия

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”