If your grid is uniformly-spaced, you can use scaled bsplines, otherwise you’ll need to use gridded interpolation. If the documentation isn’t enough to go on, can you provide a minimal working example with definitions of your vectors?
Hi, in my example here, the grids are irregular and defined in a separate function. They are discretized values from random variables and hence difficult to parameterize. I was wondering if there are any ways to interpolate just using these vector elements?
A = [0.1,0.158,0.251,0.398,0.631,1.0,1.585,2.512,3.981,6.31,10.0]
B = [-5.729, -5.716, -5.704, -5.691, -5.678]
C = [-0.823, -0.411, 0.0, 0.411, 0.823]
But…
a. V is not defined in the solution,
b. The call to itp is given as itp[1,-5.7,0], although I would have guessed from the documentation of Interpolations that it should have been itp(1,-5.7,0)??
One obvious use of interpolation is with thermodynamics tables, where some data are often missing. Can Interpolations be used for such data, or are there other packages? Example [sorry for the “big” example – missing data are in the last column]: