cbkiyanda / cspl

Common Scientific Programming Library
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

Interpolation decisions #8

Open balarsen opened 9 years ago

balarsen commented 9 years ago

We should have an interpolation module. This can be done in a couple of ways:

Thoughts?

balarsen commented 9 years ago

My temptation is to create an interpolation structure. A first cut is.

struct { double inx, double iny, double current_x_ask, long len, double extra_info, long interpolate_type }

We then would point the input as inx, iny, len. Then as you call the routines you update current_x_ask (bad var name) and do whatever is useful for interpolate_type and store that in extra_info for the next call.