Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Jack Wathey <wathey@salk.edu>
Subject: Re:  [Off-Topic:] Number game: interpolation
Date: Fri, 12 Dec 1997 00:37:45 -0800 (PST)	[thread overview]
Message-ID: <0527be263721ec1d6c39ed313431a707.axp-list@archive.invalid> (raw)

> 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

             reply	other threads:[~1997-12-12  8:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-12-12  8:37 Jack Wathey [this message]
     [not found] <Pine.GSO.3.96.971211212836.18210B-100000@yacht.ee.fit.edu>
1997-12-12 13:19 ` [Off-Topic:] Number game: interpolation Tom Browder
  -- strict thread matches above, loose matches on Subject: below --
1997-12-12  2:41 Christopher Curtis
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox