Interface Interpolation

  • All Superinterfaces:
    CurveFitting
    All Known Implementing Classes:
    CubicHermite, CubicSpline, LinearInterpolation, NewtonPolynomial

    public interface Interpolation
    extends CurveFitting
    Interpolation is a method of constructing new data points within the range of a discrete set of known data points. In engineering and science, one often has a number of data points, obtained by sampling or experimentation, which represent the values of a function for a limited number of values of the independent variable. It is often required to interpolate (i.e. estimate) the value of that function for an intermediate value of the independent variable.

    This interface extends from CurveFitting as interpolation is a special case of curve fitting that the interpolated function must pass through all the given points. Hence, this interface declares no extra method, and is just used to state the property of the output function.

    See Also:
    Wikipedia: Interpolation
    • Method Detail

      • fit

        UnivariateRealFunction fit​(OrderedPairs f)
        Fit a real valued function from a discrete set of data points.

        The interpolated function must pass through all the given points.

        Specified by:
        fit in interface CurveFitting
        Parameters:
        f - a discrete set of data points
        Returns:
        the interpolated function