JuliaMath / JuliaMath/Interpolations.jl
Improved syntax for gridded/scaled interpolation
Open
- Dominant language
- Julia
- Stars
- 575
- Forks
- 117
- PR merge metrics
- No merged PRs in 30d
Description
If I've got some gridded `x` and `y` data already sitting around, its a bit of a pain to interpolate. AFAICT the best way to do it is something like this:
``` julia
x = [2,4,6,8]
y = [1,4,3,6]
itp = scale(interpolate(y,BSpline(Linear())),x[1]:(x[2]-x[1]):x[end])
```
Is there some way this could be shortened to something like
``` julia
itp = interpolate(x,y,BSpline(Linear()))
```
instead?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.