-
Notifications
You must be signed in to change notification settings - Fork 13
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
Semantics of non-standard empty intervals #12
Comments
The problem comes down to how do you do this without analyzing the values involved. An example where the case based approach is really bad is when you go to such a case analysis based approach is, say, using There is a definition of interval arithmetic that allows for this symmetric form. They are called "Kaucher intervals" or directed intervals. I'm open to a more invasive approach, perhaps by splitting Numeric.Interval into two modules, on with the directed/Kaucher semantics and the other with the textbook interval definition, but it isn't a pure win either way. Regardless, the current behavior should be much better documented though. Several other definitions should be updated to reflect this in their description as well. |
I was thinking about that too, I don't think it can even be done for The deeper analysis at issue being (a) requiring an
to
(I'm not familiar with It might be that my needs are better served by splitting. One option would be to look at the Another option would be to resurrect a prototype I did last year that handles closed/open, infinite, semi-infinite, and cyclic intervals but requires a non-standard class that plays the role of |
Here's some interesting work on this topic. http://www.jucs.org/jucs_1_7/on_directed_interval_arithmetic/Markov_S.pdf (I think) it offers a way to describe "ordinary" interval arithmetic on top of directed interval arithmetic, which might be a useful path to, as you said, "splitting Numeric.Interval into two modules, on with the directed/Kaucher semantics and the other with the textbook interval definition". As far as I can tell, all the |
Thanks for cc'ing us. We use |
I've started work on 0.4, which does this split. |
Feel free to check my logic, as it was a marathon refactoring session this morning. |
Also, we may want a |
Done. |
Awesome. Thanks for all the help! |
and vice versa. =) |
Contradicting the bog standard definitions, though there may be alternate definitions with which I am unfamiliar.
I'm not sure if you would prefer to document the existing behavior or add a
null
case, so I haven't prepared a pull request.It's also possible that I'm not seeing a reason why the existing behavior is beneficial for some clients, I don't tend to use interval/interval arithmetic much in my applications.
The text was updated successfully, but these errors were encountered: