Linearly interpolates, allowing multiple y-values for a
given x-value.
Usage
LinInterp(xin, yin, xout, mode = 'data')
Arguments
xin
Input x vector
yin
Input y vector
xout
x-values at which to interpolate
mode
How to handle x-values with multiple y-values: one of
'jump', 'data', 'all'
Value
Vector of interpolated y-values corresponding to xout.
Details
Regarding the 'mode' argument: 'data' interpolates using the
mean of all y-values for the given x-value, while 'jump' or 'all' uses
only the y-value on the same side of the discontinuity as the element
of 'xout'.