Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 07465FA47 for ; Tue, 7 May 2013 14:41:19 +0000 (UTC) Received: (qmail 95860 invoked by uid 500); 7 May 2013 14:41:18 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 95545 invoked by uid 500); 7 May 2013 14:41:17 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 95334 invoked by uid 99); 7 May 2013 14:41:17 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 May 2013 14:41:17 +0000 Date: Tue, 7 May 2013 14:41:17 +0000 (UTC) From: "oskar_hertwig (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (MATH-972) LinearInterpolator Misconception MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MATH-972?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] oskar_hertwig updated MATH-972: ------------------------------- Attachment: Test.java PiecewiseLinearFunction.java > LinearInterpolator Misconception > -------------------------------- > > Key: MATH-972 > URL: https://issues.apache.org/jira/browse/MATH-972 > Project: Commons Math > Issue Type: Bug > Affects Versions: 3.2 > Environment: All > Reporter: oskar_hertwig > Priority: Trivial > Attachments: PiecewiseLinearFunction.java, Test.java > > 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: http://www.atlassian.com/software/jira