template class xf::fintech::BicubicSplineInterpolation¶
#include "bicubic_spline_interpolation.hpp"
Overview¶
Parameters:
DT | data type supported include float and double |
N | max length of array |
template < typename DT, int N > class BicubicSplineInterpolation
Methods¶
init¶
void init ( int n, DT xArr [N], DT yArr [N], DT zArr [N][N] )
init initialize parameters and calculate
Parameters:
n | actual array length |
xArr | array of coordinate x |
yArr | array of coordinate y |
zArr | array of coordinate z |
calcu¶
DT calcu ( DT x, DT y )
calcu calculate interpolation
Parameters:
x | interpolation coordinate x |
y | interpolation coordinate y |
Returns:
return interpolation coordinate z