commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 34230] - PolynomialSplineFunction.value() throws an exception when requesting final datapoint
Date Wed, 30 Mar 2005 05:09:12 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34230>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34230





------- Additional Comments From phil@steitz.com  2005-03-30 07:09 -------
There is no mathematical reason that I can see now (or remember ;-) that the
spline function should not just return the value at the final knot point.  The
interpolating polynomials are defined on the subintervals determined by the knot
points, closed on the left and open on the right, which is why the last one
(which would give the value at the final knot point) is now undefined at the
final knot point.  This is an implementation detail, however, and unecessary,
(unless I am forgetting something subtle) since the final polynomial should
extend by continuity to the final knot point and return the correct value there.
So I am +1 for this change.  Need to be careful to update all javadoc and unit
tests if we do this.  Patches welcome!

See the javadoc for SplineInterpolator for a reference to the interpolation
algorithm used.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message