Module Interpolation

This module is undocumented. This is a list of its definitions.

interpolateCubic :: Vector Double -> Vector Double -> Double -> Double

interpolateCubic xs ys x interpolates with a cubic Hermite spline between the points (xs!i, ys!i) at x. The values of xs must be in ascending order. Outside the range of xs the first or the last element of ys is returned.

interpolateLinear :: Vector Double -> Vector Double -> Double -> Double

interpolateLinear xs ys x interpolates linearly between the points (xs!i, ys!i) at x. The values of xs must be in ascending order. Outside the range of xs the first or the last element of ys is returned.

interpolateNearest :: Vector Double -> Vector Double -> Double -> Double

interpolateNearest xs ys x returns the element of ys whose corresponding element of xs is closest to x. The values of xs must be in ascending order. Outside the range of xs the first or the last element of ys is returned.