Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gridded(Constant{Previous}()) returns wrong results #595

Open
nielsls opened this issue May 25, 2024 · 1 comment
Open

Gridded(Constant{Previous}()) returns wrong results #595

nielsls opened this issue May 25, 2024 · 1 comment

Comments

@nielsls
Copy link

nielsls commented May 25, 2024

To be fair, the docs for Constant does mention possibility of numerical errors but this seems quite wrong...

# wrong - should be 20
julia> interpolate(([1,2],),[10,20],Gridded(Constant{Previous}()))(2)
10

# correct
julia> interpolate([10,20],BSpline(Constant{Previous}()))(2)
20.0
@mkitti
Copy link
Collaborator

mkitti commented May 26, 2024

Thanks. I'll take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants