Interface InterpolationStrategy<Y>

    • Method Detail

      • interpolate

        <X> Y interpolate​(X xValue,
                          DiscreteFunction<X,​Y> function,
                          Conversion<X,​Y> conversion,
                          java.util.Comparator<X> comparator)
        Given a value of X, a discrete function from X to Y and a conversion from X to Y, returns the interpolated value of the function at the given point
        Parameters:
        xValue - value of x for which you want to know the function output value
        function - DiscreteFunction to interpolate
        conversion - defines how values of X domain are transformed into values of Y domain. It is needed for performing any kind of interpolation.
        Returns:
        the interpolated value of y for the function at xValue