From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <0527be263721ec1d6c39ed313431a707.axp-list@archive.invalid> X-Archive-Original-Message-ID: <199712120837.AAA01544@helmholtz.salk.edu> Date: Fri, 12 Dec 1997 00:37:45 -0800 (PST) From: Jack Wathey Subject: Re: [Off-Topic:] Number game: interpolation > The linear method won't work well for us where the data curves well (it > appears very 'choppy' when graphed) and cubic spline has a fit when the > derivates fall to zero at the end. I don't have a "corrective" algorithm such as you describe, but I do have a fairly simple parabolic interpolation algorithm. It requires that the abscissas of the points between which you are interpolating be evenly spaced, and each interpolation requires 3 points, rather than the two used in linear interpolation. If the 3 points are collinear, it reduces to linear interpolation, so it would probably give good results in both parts of your curve. It might not be terribly clean at the transition, but it would not do anything disastrous. Let me know if you think this might be appropriate and I'll go digging through my old notes. Somewhere I have the code in Pascal, which p2c should be able to convert. Jack Wathey -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com