-
Notifications
You must be signed in to change notification settings - Fork 26
Extrapolation not working for some BCs #31
Comments
Acutally, it appears that it's not only for cubic interpolation we have problems with some BCs:
There's a weird shift in (If the final datapoint is left out from the |
This definition of reflection is consistent with a reflection of a vector The thing below 1 is just weird, gotta look into that. |
@timholy Yeah, I guess it makes a lot of sense for imaging applications, but it really doesn't for physics applications. For example, interpolating the electric field along a ray path, when the signal hits a reflecting surface could be done using |
I'm not sure it's physics vs images. Who says the reflecting surface is positioned exactly at a node? Perhaps I might have set my grid points to be a half-node away from the edge. But flexibility would be good. I'm not sure we want to support any choice in the interval |
Yeah, I didn't like the naming either, but I had to distinguish between them somehow :P Supporting both seems like the target then. Hopefully, on-node reflection will be good enough for cases when the current behavior between the two near-edge nodes is unsatisfactory for some reason. |
Sounds good to me. |
Joining very late. In most applications of field theories (EM, QM, solid state, etc.) it is essential to be able to place the boundary at node or mid-node. There are even some edge (pun!) cases where quarter-intervals are numerically convenient. Having node and mid-node will cover most cases and help users write more transparently correct code. |
@cmundi: Both node and mid-node are supported in Interpolations.jl in terms of the |
Perfect! Thanks for your reply.
|
There are still some boundary conditions for which
InterpCubic
(from #19) isn't working correctly. See e.g. this comment on #29.The text was updated successfully, but these errors were encountered: