commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilles (JIRA)" <>
Subject [jira] [Commented] (MATH-972) LinearInterpolator Misconception
Date Tue, 07 May 2013 15:15:17 GMT


Gilles commented on MATH-972:

bq. [...] about the object returned by LinearInterpolator [...] should not be derivable on
the entire domain [...]

Strictly speaking it is not, since the "interpolate" method in "UnivariateInterpolator" is
defined to return a "UnivariateFunction".
The actual object used is an "implementation detail" which users should not rely on.

At first sight, your "PiecewiseLinearFunction" is just another name for a special case of
our "PolynomialSplineFunction" (where all its components have degree 1). IMHO, it doesn't
warrant the code duplication.

It seemed that the name "PolynomialSplineFunction" is at the origin of the confusion.

> LinearInterpolator Misconception
> --------------------------------
>                 Key: MATH-972
>                 URL:
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 3.2
>         Environment: All
>            Reporter: oskar_hertwig
>            Priority: Trivial
>         Attachments:,
>   Original Estimate: 2h
>  Remaining Estimate: 2h
> The method interpolate() of the class LinearInterpolator return a polynomialSplineFunction
althought a piecewiseContinuousFunction have to be returned.
> This cause a bug. Indeed when the interpolated serie is localy constant the linear interpolation
should lead to constant value between this points. This is not possible when the returned
object is a PolynomialSplineFunction

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message