pysrw.lib.uti_math.interp_1d

Contents

pysrw.lib.uti_math.interp_1d#

pysrw.lib.uti_math.interp_1d(_x, _x_min, _x_step, _nx, _ar_f, _ord=3, _ix_per=1, _ix_ofst=0)[source]#

Interpolate 1D function value tabulated on equidistant mesh, using polynomial interpolation :param _x: argument at which function value should be calculated :param _x_min: minimal argument value of the tabulated function :param _x_step: step of mesh at which function is tabulated :param _nx: number of points in mesh at which function is tabulated :param _ar_f: tabulated function list or array :param _ord: order of polynomial interpolation (1- linear, 2- quadratic, 3- cubic) :param _ix_per: argument index period of function data alignment (e.g. to interpolate one component of complex data, or in one dimension of multi-dimensional data) :param _ix_ofst: argument index offset of function data alignment :return: function value found by polynomial interpolation