-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
The inverted integral of LinearInterpolation
#277
Comments
Is this doable for all interpolations? |
In favour of doability:
Against doability:
|
It could be added to the interface with a trait for which algorithms support it, and just not supported by most algorithms to start. That could be fine. |
I think the following expression is sufficiently stable (where as we require |
What kind of problems is it mostly used for? Please describe.
For my application I need to compute the water level in a bucket given a piecewise linear area(level) relationship and a volume:
It is assumed that the area is always positive.
Describe the algorithm you’d like
volume(level) relationship:
So this quadratic equation must be solved for$\ell$ :
This does lead to numerical problems when$\frac{\Delta A_i}{\Delta \ell_i}$ is small, so I could use some help with that.
Other implementations to know about
I implemented this as
CLinearInterpolationInvInv
here: https://github.com/SouthEndMusic/CachedInterpolations.jl.Is this too niche for
DataInterpolations.jl
?The text was updated successfully, but these errors were encountered: