[
https://issues.apache.org/jira/browse/MATH-989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13677393#comment-13677393
]
Ajo Fod edited comment on MATH-989 at 6/6/13 7:21 PM:
------------------------------------------------------
I currently have a wrapper class around this class to intercept calls that are
outside the interpolator's domain. But, why make the life of the API user's
life any harder that it should be? Why not extend the role of the class to
include flagging inappropriate calls when asked to? Is there a more "efficient"
way to flag inappropriate calls? Perhaps there is some deeper phiolosophy there
that I don't see. If so, please give me a link.
was (Author: ajo.fod):
I currently have a wrapper class around this class to intercept calls that
are outside the interpolator's domain. But, why make the life of the API user's
life any harder that it should be? Why not extend the role of the class to
include flagging inappropriate calls when asked to? Is there a more "efficient"
way to flag inappropriate calls? Perhaps there is some deeper phiolosophy there
that I don't see. If so, please give me a link or something.
> Allow code to avoid OutOfRangeException
> ---------------------------------------
>
> Key: MATH-989
> URL: https://issues.apache.org/jira/browse/MATH-989
> Project: Commons Math
> Issue Type: Bug
> Reporter: Ajo Fod
> Attachments: patch
>
>
> Exceptions are generally costlier than a test. In the
> BicubicSplineInterpolatingFunction, there is no way to determine if a given x
> is in domain of the interpolator. So, I suggest a function to allow this
> check.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira