commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilles (JIRA)" <>
Subject [jira] [Commented] (MATH-989) Allow code to avoid OutOfRangeException
Date Fri, 07 Jun 2013 10:26:20 GMT


Gilles commented on MATH-989:

Also, please note that this function is two-dimensional; a single check is not enough to ensure
a valid call.

We could add a query method like
  public boolean isValidPoint(double x, double y) {
    // ...

Would that be fine for your use-case?

> 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