pysrw.lib.uti_math.interp_1d_var#
- pysrw.lib.uti_math.interp_1d_var(_x, _ar_x, _ar_f, _ord=3)[source]#
Interpolate linearly 1D function value tabulated on non-equidistant (irregular) mesh :param _x: argument at which function value should be calculated :param _ar_x: array or list of increasing argument values, at which the function is tabulated :param _ar_f: array or list of tabulated values corresponding to arguments in _ar_x :param _ord: order of polynomial interpolation (1- linear, 2- quadratic, 3- cubic) :return: function value found by polynomial interpolation