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)
Name |
Type |
Default |
Description |
|---|---|---|---|
|
Time axis of the original x array. |
||
|
Samples to be interpolated. The last axis of the array will be interpolated. |
||
|
None |
If known, left index of region of interest |
|
|
None |
If known, right index of region of interest |
|
|
params.SUPPORT_SINC_FILTER |
Support of the interpolation filter |
|
|
1 |
Number of times to sinc-interpolate by factor of 2 |
Output variables#
Return annotation |
Docstring type |
Description |
|---|---|---|
|
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