Struggling to update deprecated Interpolations function

I think you might need something like this:

julia> interp = linear_interpolation([.3,.5,.6], [.4,.7,.9]; extrapolation_bc=Line())
3-element extrapolate(interpolate((::Vector{Float64},), ::Vector{Float64}, Gridded(Linear())), Line()) with element type Float64:
 0.4
 0.7
 0.9

julia> interp(.4)
0.55

From what I can tell, extrapolation_bc determines how to extrapolate values outside the range of the input values. Setting extrapolation_bc = 0 is not valid.

1 Like