commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ajo Fod (JIRA)" <>
Subject [jira] [Updated] (MATH-989) Allow code to avoid OutOfRangeException
Date Tue, 04 Jun 2013 17:21:22 GMT


Ajo Fod updated MATH-989:

    Attachment: patch

This patch adds a rangeSign() function to allow a check to see if x is within range of the
Interpolator. There probably are other objects/cases where such a check can save time.
> 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