Commons Math
  1. Commons Math
  2. MATH-458

Interpolators: Remove "MathException" from the signature of the "interpolate" method

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0
    • Labels:
      None

      Description

      The interfaces for the interpolators contain a "throws" clause that should be removed.
      E.g.

      public interface UnivariateRealInterpolator {
      
          /**
           * Computes an interpolating function for the data set.
           * @param xval the arguments for the interpolation points
           * @param yval the values for the interpolation points
           * @return a function which interpolates the data set
           * @throws MathException if arguments violate assumptions made by the
           *         interpolation algorithm
           */
          UnivariateRealFunction interpolate(double xval[], double yval[])
              throws MathException;
      }
      

      Assumptions violation should be dealt with by throwing appropriate unchecked exceptions.

        Activity

          People

          • Assignee:
            Gilles
            Reporter:
            Gilles
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development