Improvement on this function

2003-09-17 Thread Gordon James Miller
Hello all. I'd be interested in getting some feedback on how to do this linear interpolation function a little more cleanly. The normal way that this is taught is to find the set of indices in the x list that bracket the input value, then use the slope between these points to calculate the y

Re: Improvement on this function

2003-09-17 Thread Jon Fairbairn
On 2003-09-17 at 10:31EDT Gordon James Miller wrote: Something I think is more café than language: Hello all. I'd be interested in getting some feedback on how to do this linear interpolation function a little more cleanly. The normal way that this is taught is to find the set of indices