fbpx
Wikipedia

Akima spline

In applied mathematics, an Akima spline is a type of non-smoothing spline that gives good fits to curves where the second derivative is rapidly varying.[1] The Akima spline was published by Hiroshi Akima in 1970 from Akima's pursuit of a cubic spline curve that would appear more natural and smooth, akin to an intuitively hand-drawn curve.[2][3] The Akima spline has become the algorithm of choice for several computer graphics applications.[3] Its advantage over the cubic spline curve is its stability with respect to outliers.[4]

Method edit

Given a set of "knot" points  , where the   are strictly increasing, the Akima spline will go through each of the given points. At those points, its slope,  , is a function of the locations of the points   through  . Specifically, if we define   as the slope of the line segment from   to  , namely

 

then the spline slopes   are defined as the following weighted average of   and  ,

 

If the denominator equals zero, the slope is given as

 

The first two and the last two points need a special prescription, for example,

 

The spline is then defined as the piecewise cubic function whose value between   and   is the unique cubic polynomial  ,

 

where the coefficients of the polynomial are chosen such that the four conditions of continuity of the spline together with its first derivative are satisfied,

 

which gives

 
 
 
 

Due to these conditions the Akima spline is a  C1 differentiable function, that is, the function itself is continuous and the first derivative is also continuous. However, in general, the second derivative is not necessarily continuous.

An advantage of the Akima spline is due to the fact that it uses only values from neighboring knot points in the construction of the coefficients of the interpolation polynomial between any two knot points. This means that there is no large system of equations to solve and the Akima spline avoids unphysical wiggles in regions where the second derivative in the underlying curve is rapidly changing. A possible disadvantage of the Akima spline is that it has a discontinuous second derivative.[5]

References edit

  1. ^ "Spline interpolation and fitting – ALGLIB, C++ and C# library". www.alglib.net.
  2. ^ Akima, Hiroshi (1970). "A new method of interpolation and smooth curve fitting based on local procedures" (PDF). Journal of the ACM. 17: 589–602. (PDF) from the original on 2020-12-18. Retrieved 2020-12-18.
  3. ^ a b Salomon, David (2011), "Raster Graphics", Texts in Computer Science, London: Springer London, pp. 29–134, ISBN 978-0-85729-885-0, retrieved 2023-10-23
  4. ^ Siddiqi, Al-Lawati, Boulbrachene, Abul Hasan, Mohamed, Messaoud (2017). Modern Engineering Mathematics. CRC. ISBN 9781498712095.{{cite book}}: CS1 maint: multiple names: authors list (link)
  5. ^ "The Akima Interpolation".

External links edit

  • Online demo of Akima spline interpolation in TypeScript

akima, spline, applied, mathematics, type, smoothing, spline, that, gives, good, fits, curves, where, second, derivative, rapidly, varying, published, hiroshi, akima, 1970, from, akima, pursuit, cubic, spline, curve, that, would, appear, more, natural, smooth,. In applied mathematics an Akima spline is a type of non smoothing spline that gives good fits to curves where the second derivative is rapidly varying 1 The Akima spline was published by Hiroshi Akima in 1970 from Akima s pursuit of a cubic spline curve that would appear more natural and smooth akin to an intuitively hand drawn curve 2 3 The Akima spline has become the algorithm of choice for several computer graphics applications 3 Its advantage over the cubic spline curve is its stability with respect to outliers 4 Method editGiven a set of knot points xi yi i 1 n displaystyle x i y i i 1 dots n nbsp where the xi displaystyle x i nbsp are strictly increasing the Akima spline will go through each of the given points At those points its slope si displaystyle s i nbsp is a function of the locations of the points xi 2 yi 2 displaystyle x i 2 y i 2 nbsp through xi 2 yi 2 displaystyle x i 2 y i 2 nbsp Specifically if we define mi displaystyle m i nbsp as the slope of the line segment from xi yi displaystyle x i y i nbsp to xi 1 yi 1 displaystyle x i 1 y i 1 nbsp namely mi yi 1 yixi 1 xi displaystyle m i frac y i 1 y i x i 1 x i nbsp then the spline slopes si displaystyle s i nbsp are defined as the following weighted average of mi 1 displaystyle m i 1 nbsp and mi displaystyle m i nbsp si mi 1 mi mi 1 mi 1 mi 2 mi mi 1 mi mi 1 mi 2 displaystyle s i frac m i 1 m i m i 1 m i 1 m i 2 m i m i 1 m i m i 1 m i 2 nbsp If the denominator equals zero the slope is given as si mi 1 mi2 displaystyle s i frac m i 1 m i 2 nbsp The first two and the last two points need a special prescription for example s1 m1 s2 m1 m22 sn 1 mn 2 mn 12 sn mn 1 displaystyle s 1 m 1 s 2 frac m 1 m 2 2 s n 1 frac m n 2 m n 1 2 s n m n 1 nbsp The spline is then defined as the piecewise cubic function whose value between xi displaystyle x i nbsp and xi 1 displaystyle x i 1 nbsp is the unique cubic polynomial Pi x displaystyle P i x nbsp Pi x ai bi x xi ci x xi 2 di x xi 3 displaystyle P i x a i b i x x i c i x x i 2 d i x x i 3 nbsp where the coefficients of the polynomial are chosen such that the four conditions of continuity of the spline together with its first derivative are satisfied P xi yi P xi 1 yi 1 P xi si P xi 1 si 1 displaystyle P x i y i P x i 1 y i 1 P x i s i P x i 1 s i 1 nbsp which gives ai yi displaystyle a i y i nbsp bi si displaystyle b i s i nbsp ci 3mi 2si si 1xi 1 xi displaystyle c i frac 3m i 2s i s i 1 x i 1 x i nbsp di si si 1 2mi xi 1 xi 2 displaystyle d i frac s i s i 1 2m i x i 1 x i 2 nbsp Due to these conditions the Akima spline is a C1 differentiable function that is the function itself is continuous and the first derivative is also continuous However in general the second derivative is not necessarily continuous An advantage of the Akima spline is due to the fact that it uses only values from neighboring knot points in the construction of the coefficients of the interpolation polynomial between any two knot points This means that there is no large system of equations to solve and the Akima spline avoids unphysical wiggles in regions where the second derivative in the underlying curve is rapidly changing A possible disadvantage of the Akima spline is that it has a discontinuous second derivative 5 References edit Spline interpolation and fitting ALGLIB C and C library www alglib net Akima Hiroshi 1970 A new method of interpolation and smooth curve fitting based on local procedures PDF Journal of the ACM 17 589 602 Archived PDF from the original on 2020 12 18 Retrieved 2020 12 18 a b Salomon David 2011 Raster Graphics Texts in Computer Science London Springer London pp 29 134 ISBN 978 0 85729 885 0 retrieved 2023 10 23 Siddiqi Al Lawati Boulbrachene Abul Hasan Mohamed Messaoud 2017 Modern Engineering Mathematics CRC ISBN 9781498712095 a href Template Cite book html title Template Cite book cite book a CS1 maint multiple names authors list link The Akima Interpolation External links editOnline demo of Akima spline interpolation in TypeScript Retrieved from https en wikipedia org w index php title Akima spline amp oldid 1192094741, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.