I should also add that unless you need a continuous second derivative, 
quadratic (while not as popular) is IMO nicer than cubic in several ways---for 
example, by requiring fewer points (27 rather than 64 in 3 dimensions), it's 
faster to evaluate. I suspect the main reason quadratic isn't popular is that 
it's "non-interpolating" (in the terminology of P. Thevenaz, T. Blu, and M. 
Unser, 2000), but the infrastructure in Grid (based on interp_invert!) 
compensates for that.

--Tim

On Wednesday, March 26, 2014 06:26:12 AM Tomas Lycken wrote:
> Hi,
> 
> Is there a (maintained) package somewhere with cubic spline capabilities? I
> need something that fulfills the following requirements:
> 
> * Scalar-valued functions of one variable, f(x), specified on uniform or
> non-uniform x-grids
> * Scalar-valued functions of two variables, f(x,y), at least specified on
> uniform grids that don't need to have the same spacing in x and y (i.e.
> rectangular, but not necessarily quadratic, grid cells)
> * Evaluation of function value and evaluate up to at least second order
> derivatives, i.e. both f'x, f'y, f'xx, f'xy and f'yy in the 2D case
> 
> The only packages I've found that seem to approach this functionality are
> 
> * https://github.com/timholy/Grid.jl - only up to quadratic splines, as far
> as I can tell from the readme; also unsure on if it can evaluate second
> order derivatives
> * https://github.com/gusl/BSplines.jl - only 1D interpolation, and base
> splines rather than exact cubic splines
> * https://github.com/EconForge/splines - Specifies Julia 0.2- in its
> require and hasn't been touched in four months => I doubt it works with my
> Julia installation which is at master. It would also probably take quite a
> lot of work to learn to use it, since it has no documentation at all.
> 
> Are there any others that I've missed? Is there any non-official effort
> toward creating this functionality in Julia?
> 
> Thanks in advance,
> 
> // Tomas

Reply via email to