JuliaMath / JuliaMath/Interpolations.jl

Nodes used when interpolating a node on grid

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

Description

I have been frustrated by the code below returning NaN---presumably as the first two nodes (`[Inf, 1.0]`) are used to interpolate the queried value (`2`). Is there some way to change which nodes are used when querying a value on the grid?

```julia
using Interpolations
itp = LinearInterpolation([1, 2, 3], [Inf, 1.0, 0.5], extrapolation_bc=Line())
itp(2)
```

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.