Skip to content

Confused about the true meaning of OnCell and OnGrid #228

Closed
@timholy

Description

@timholy

This may sound surprising, but I'm looking for clarification about what OnCell and OnGrid actually mean. Let's take the case of Constant: my interpretation is that OnCell should mean that the array value is constant over i-0.5 to i+0.5 but has a step discontinuity at the edges of this region. Conversely, I would expect OnGrid to be constant over i to i+(1-eps()). In other words, something like this:

constant-desired

But that's not what we have, and indeed OnGrid and OnCell seem to behave identically:

constant_real

Likewise for Quadratic:

quadratic

By the definition I am picturing, I'm not even sure there is an obvious meaning to Linear, OnCell that is also continuous. (The closest I can come up with is that the slope at i is (y[i+1]-y[i-1])/2, but that has discontinuities at the half-integers.)

So despite having worked with the package a lot (though not for quite a while, truth be told), I am confused.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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