commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ajo Fod (JIRA)" <>
Subject [jira] [Commented] (MATH-989) Allow code to avoid OutOfRangeException
Date Thu, 06 Jun 2013 19:15:20 GMT


Ajo Fod commented on MATH-989:

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?
> Allow code to avoid OutOfRangeException
> ---------------------------------------
>                 Key: MATH-989
>                 URL:
>             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:

View raw message