I’m running 1.9.1, and trying to follow along with the documentation.
xs = 1:0.2:5
A = log.(xs)
linear_interpolation(xs, A) # works fine
linear_interpolation(xs, A,extrapolation_bc=Line()) # also works fine
extrapolate(scale(interpolate(A, BSpline(Linear())), xs)) # throws an error:
ERROR: MethodError: no method matching extrapolate(::ScaledInterpolation{Float64, 1, Interpolations.BSplineInterpolation{Float64, 1, Vector{Float64}, BSpline{Linear{Throw{OnGrid}}}, Tuple{Base.OneTo{Int64}}}, BSpline{Linear{Throw{OnGrid}}}, Tuple{StepRangeLen{Float64, Base.TwicePrecision{Float64}, Base.TwicePrecision{Float64}, Int64}}})
Closest candidates are:
extrapolate(::AbstractInterpolation{T, N, IT}, ::ET) where {T, N, IT, ET<:Union{Tuple{Vararg{Union{Tuple{Interpolations.BoundaryCondition, Interpolations.BoundaryCondition}, Interpolations.BoundaryCondition}}}, Interpolations.BoundaryCondition}}
@ Interpolations ~/.julia/packages/Interpolations/nDwIa/src/extrapolation/extrapolation.jl:40
extrapolate(::AbstractInterpolation{T, N, IT}, ::Union{Tuple{Vararg{Union{Tuple{Interpolations.Flag, Interpolations.Flag}, Interpolations.Flag}}}, Interpolations.Flag}) where {T, N, IT}
@ Interpolations ~/.julia/packages/Interpolations/nDwIa/src/deprecations.jl:41
extrapolate(::AbstractInterpolation{T, N, IT}, ::Any) where {T, N, IT}
@ Interpolations ~/.julia/packages/Interpolations/nDwIa/src/extrapolation/filled.jl:28
Stacktrace:
[1] top-level scope
@ REPL[7]:1