[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [IMP-dev] spline interpolation




Another question ....

6) Is the function able to deal with multidimensional interpolation (i.e. if I give it a set of 2D/3D points, can it produce a surface) ? I guess no, but I am curious.

El 26 de mayo de 2009 15:40, Javier Ángel Velázquez Muriel <">> escribió:

Hi,

I've noticed an OpenCubicSpline class in the core module. I couldn't find an example in the code using grep. Could anybody answer this questions?

1) I understand that the values have to be evenly-spaced. Then, why asking for minrange and spacing ? Why not just use:
minrange = values[0];
spacing = values[1]-values[0];
?

2) What is the minimum number of values required ? 4 ?
3) Do they need to be sorted ?
4) If I want to compute values out of range, should I use ClosedCubicSpline ?

5) Could the author update the help a little bit?

Thanks !