Posts

Showing posts from March, 2025

Makima

 Mathworks have developed a variation of Akima's Method, called Makima, which addresses the issues with the original Akima Method that were explained in the previous post 'Understanding Akima'.  The method is described in a blogpost on the Mathworks website, written by Cosmin Ionita.  See: https://blogs.mathworks.com/cleve/2019/04/29/makima-piecewise-cubic-interpolation/ The modification adds stabilising terms to the weights in the original Akima Method.  It is not explained how these terms were chosen, but they certainly seem to work - so let's explore them.  For simplicity of notation, we shall again just look at a set of five points, x 1 to x 5 , and consider the estimation of the slope at x 3 - using the notation of the previous post 'Understanding Akima'.  The terms a 1 and a 2 are revised as follows: a 1 = abs(m 4 - m 3 ) + 0.5*abs(m 4 + m 3 ) a 2 = abs(m 2 - m 1 ) + 0.5*abs(m 2 + m 1 ) Then as before, b = a 1 + a 2 , and w 1  = a 1 ...