Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-458

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.0
    • None
    • 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.

      Attachments

        Activity

          People

            erans Gilles Sadowski
            erans Gilles Sadowski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: