JuliaMath / JuliaMath/Interpolations.jl
Interpolation (BSpline) with input matrix X and output vector Y
- Dominant language
- Julia
- Stars
- 575
- Forks
- 117
- PR merge metrics
- No merged PRs in 30d
Description
Using Interpolations
```
x = rand(50,5)*2 .- 1 # Fake input data
y = rand(50) # Fake output data
itp = interpolate((x,),y, BSpline(Linear()))
ERROR: MethodError: no method matching interpolate(::Tuple{Array{Float64,1}}, ::Array{Float64,1}, ::BSpline{Linear})
Closest candidates are:
interpolate(::Tuple{Vararg{Union{AbstractArray{T,1}, Tuple} where T,N}}, ::AbstractArray{Tel,N}, ::IT) where
{Tel, N, IT<:Union{NoInterp, Tuple{Vararg{Union{NoInterp, Gridded},N} where N}, Gridded}}
at .../.julia/packages/Interpolations/XUr6v/src/gridded/gridded.jl:83
```
Is there any way to do this? I would like to end up with a function `itp` that can take numbers from the matrix `x` e.g. itp(0.1,0.3,0.01,-0.4,0.5) and return a value that resulted from the interpolation (assuming that vector was not a row in the data `x`)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.