list interpolate - part-cw/lambdanative GitHub Wiki
(list-interpolate lst x0)
list-interpolate interpolates a list.
Parameter | Description |
---|---|
lst | List used as reference |
x0 | Value to be interpolated (0-1) |
Example
Example 1: Show some interpolation results
> (list-interpolate '(0 2 4 6 8 10) 0.7)
7.
> (list-interpolate '(0 1 2 3 4) 0.3)
1.2