 
 
 
 
 
 
Re: Table Lookup
- To: mathgroup at yoda.physics.unc.edu
- Subject: Re: Table Lookup
- From: keiper
- Date: Thu, 14 Oct 93 10:09:54 CDT
	> What's the most efficent way to do a table lookup and linear
	> interpolation?
My guess would be that 
	data = {{1, 2}, {2, 3}, {3, 3}, {4, 2}, {5, 2}};
	intfunc = Interpolation[data, InterpolationOrder -> 1]
	intfunc[2.5]
would be about as efficient as you can get.
(Of course it would probably be better to use a more sparse data
table and higher order interpolation.)
Jerry B. Keiper
keiper at wri.com
Wolfram Research, Inc.

