#include "xf_fintech/linear_interpolation.hpp"
template <typename DT> DT linearImpl ( DT x, int len, DT* arrX, DT* arrY )
linearImpl 1D linear interpolation
Parameters:
DT | data type supported include float and double. |
x | interpolation coordinate x |
len | array of length |
arrX | array of coordinate x |
arrY | array of coordinate y |
Returns:
return interpolation coordinate y