Open zxm403089989 opened 1 year ago
What version of Interpolations.jl are you using?
julia> using Interpolations
help?> linear_interpolation
search: linear_interpolation
etp = linear_interpolation(knots, A; extrapolation_bc=Throw())
A shorthand for one of the
following.
• extrapolate(scale(interpolate(A,
BSpline(Linear())),
knots),
extrapolation_bc)
• extrapolate(interpolate(knots,
A,
Gridded(Linear())),
extrapolation_bc),
depending on whether knots are
ranges or vectors.
Consider using interpolate,
scale, or extrapolate
explicitly as needed rather
than using this convenience
constructor. Performance will
improve without scaling or
extrapolation.
julia> using Pkg
julia> pkg"status Interpolations"
Status `/tmp/jl_1imjMf/Project.toml`
[a98d9a8b] Interpolations v0.14.7
Thanks for your response. I understand what happened now. I am using version v0.13.6 and Pkg
prevent me updating due to package consistency and I thought I already using all latest version packages.
I followed exactly the same example in document http://juliamath.github.io/Interpolations.jl/stable/convenience-construction/#Usage. However, Julia said that
linear_interpolation
andcubic_spline_interpolation
are not defined:I am wandering that are those information in document true? We can see that function
LinearInterpolation
andCubicSplineInterpolation
are well defined. I suppose these are just typos or there are something need to be updated?