JuliaMath / JuliaMath/Interpolations.jl

Unable to use Base.OneTo for nearest neighbor interpolation NoInterp() with negative axis values

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

Description

Try the following example:

x = Array(-3:1:3)
v = Array(-3:1:3)
itp = interpolate((x,), v, NoInterp())

It prompts:
for NoInterp knot vector should be Base.OneTo(7), got [-3, -2, -1, 0, 1, 2, 3]

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.