aspcore.filter.FilterBroadcastFreq

class aspcore.filter.FilterBroadcastFreq(data_dims, tf=None, ir=None, filt_dim=None, ir_len=None, num_freq=None)

Bases: object

ir is the time domain impulse response, with shape (a0, a1,…, an, irLen) tf is frequency domain transfer function, with shape (2*irLen, a0, a1,…, an),

input of filter function is shape (b0, b1, …, bn, irLen) output of filter function is shape (a0,…,an,b0,…,bn,irLen)

dataDims must be provided, which is a tuple like (b0, b1, …, bn) filtDim is (a0, a1,…, an) and must then be complemented with irLen or numFreq If you give to many arguments, it will propritize tf -> ir -> numFreq -> irLen

__init__(data_dims, tf=None, ir=None, filt_dim=None, ir_len=None, num_freq=None)

Methods

__init__(data_dims[, tf, ir, filt_dim, ...])

process(samples_to_process)

process_freq(freqs_to_process)

Can be used if the fft of the input signal is already available.

process_freq(freqs_to_process)

Can be used if the fft of the input signal is already available. Assumes padding is already applied correctly.