utils.sinc_interp_by_factor_of_2#

Back to Module page

Summary#

Signature#

def sinc_interp_by_factor_of_2(t, x, left_ind = None, right_ind = None, support = params.SUPPORT_SINC_FILTER, n_interp = 1)
Input variables#

Name

Type

Default

Description

t

Time axis of the original x array.

x

Samples to be interpolated. The last axis of the array will be interpolated.

left_ind

None

If known, left index of region of interest

right_ind

None

If known, right index of region of interest

support

params.SUPPORT_SINC_FILTER

Support of the interpolation filter

n_interp

1

Number of times to sinc-interpolate by factor of 2

Output variables#

Return annotation

Docstring type

Description

None

t_interp, x_interp # Apologies to grad students Length of x_interp is 2\*len(x) - 4\*(support+1) if n_interp = 1

Docstring#

:param t: Time axis of the original x array.
:param x: Samples to be interpolated. The last axis of the
          array will be interpolated.
:param left_ind: If known, left index of region of interest
:param right_ind: If known, right index of region of interest
:param support: Support of the interpolation filter
:param n_interp: Number of times to sinc-interpolate by factor of 2
:return: t_interp, x_interp
# Apologies to grad students
Length of x_interp is 2*len(x) - 4*(support+1) if n_interp = 1