Skip to content

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

Open
@nielsls

Description

@nielsls

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions