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

"UnivariateRealPeriodicInterpolator"

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.0
    • None
    • None

    Description

      It would be an interpolator implementation that assumes that the data to be interpolated is periodic. Thus values that are outside of the range can be passed to the interpolation function:
      They will be wrapped into the initial range before being passed to the class that actually computes the interpolation.
      The constructor prototype would be:

      /**
       * Builds an interpolator.
       *
       * @param interpolator Interpolator.
       * @param period Period.
       * @param offset Offset.
       * @param extend Number of points to be appended at the beginning and
       * end of the sample arrays in order to avoid interpolation failure at
       * the (periodic) boundaries of the orginal interval. The value is the
       * number of sample points which the original {@code interpolator} needs
       * on each side of the interpolation point.
       */
      public UnivariateRealPeriodicInterpolator(UnivariateRealInterpolator interpolator,
                                                double period,
                                                double offset,
                                                int extend) {
          // ...
      }
      

      Would it be useful to have that in CM?

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: