brainstat.stats.utils.interp1

brainstat.stats.utils.interp1(x, y, ix, kind='linear')[source]

Interpolation between datapoints.

Parameters
  • x ((numpy.array)) – x coordinates of training data.

  • y ((numpy.array)) – y coordinates of training data.

  • ix ((numpy.array)) – coordinates of the interpolated points.

  • (numpy.array) (kind) – type of interpolation; see scipy.interpolate.interp1d for options.

Returns

numpy.array – interpolated y coordinates.