-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Add extrapolation keyword #193
Add extrapolation keyword #193
Conversation
src/derivatives.jl
Outdated
@@ -1,4 +1,7 @@ | |||
derivative(A, t) = derivative(A, t, firstindex(A.t) - 1)[1] | |||
function derivative(A, t) | |||
((t < A.t[1] || t > A.t[end]) && !A.extrapolate) && error("Cannot extrapolate!") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should make this an error type and throw it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed in d45c36f
ed776c8
to
1802631
Compare
It might be nice to turn off extrapolation by default. Worth chatting about. |
Yeah, it might be better as the expected behaviour of any interpolation should be within the range of time points provided. |
yes |
No description provided.