Akima interpolation of an array of doubles
Posted
by
David Rutten
on Stack Overflow
See other posts from Stack Overflow
or by David Rutten
Published on 2010-08-17T13:16:52Z
Indexed on
2011/01/09
5:53 UTC
Read the original article
Hit count: 271
Assuming I have an array of doubles, what's a good algorithm to sample this series using Akima interpolation? I'm too stupid to translate that mathematical description into code.
// values is an array of doubles
// idx is the index of the left-hand value for the current interpolation
// t is the normalized parameter between values[idx] and values[idx+1]
// Don't worry about array bounds, I'll handle that separately.
public double InterpolateAkima(double[] values, int idx, double t)
{
...?
}
© Stack Overflow or respective owner