JuliaMath / JuliaMath/Interpolations.jl

LinearInterpolation handles collect(x) but not CubicSplineInterplation

Open
#383 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
575
Forks
117
PR merge metrics
No merged PRs in 30d

Description

CubicSplineInterpolation does not handle collect(), Yet LinearInterpolation does --- see minimal example below. Any suggestions on how to address this?

```using Interpolations
x = collect(1:0.1:5)
y = rand(length(x))
itp1 = LinearInterpolation(x, y; extrapolation_bc=Flat())
@show itp1(4)
@show itp1(6)
itp2 = CubicSplineInterpolation(x, y; extrapolation_bc=Flat())
@show itp2(4)
@show itp2(6)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.