utils.change_filter_times_fd#

Back to Module page

Summary#

Converts a conditioned filter to a different time array by zero-padding in time-domain

Signature#

def change_filter_times_fd(filter_fd, orig_len, chop_len, pad_mode = 'center')
Input variables#

Name

Type

Default

Description

filter_fd

n_filter x len(rfftfreq(orig_len)) array with frequency-domain filters (can be vector for n_filter = 1)

orig_len

Length of original time series

chop_len

Length of different time series

pad_mode

‘center’

Where to pad, can be ‘center’, ‘left’ or ‘right’

Output variables#

Return annotation

Docstring type

Description

None

Docstring#

Converts a conditioned filter to a different time array by zero-padding
in time-domain
:param filter_fd:
    n_filter x len(rfftfreq(orig_len)) array with frequency-domain filters
    (can be vector for n_filter = 1)
:param orig_len: Length of original time series
:param chop_len: Length of different time series
:param pad_mode: Where to pad, can be 'center', 'left' or 'right'
:return Frequency domain filter(s) living on rfftfreq(chop_len)