aspcore.adaptivefilter.BlockLMS

class aspcore.adaptivefilter.BlockLMS(ir_len, num_in, num_out, stepSize, regularization=0.001, filter_type=None)

Bases: AdaptiveFilterBase

Block based processing and normalization Dimension of filter is (input channels, output channels, IR length) Normalizes with a scalar, common for all channels identical to FastBlockLMS with scalar normalization

__init__(ir_len, num_in, num_out, stepSize, regularization=0.001, filter_type=None)

Methods

__init__(ir_len, num_in, num_out, stepSize)

insert_in_signal(ref)

prepare()

process(signalToProcess)

set_ir(new_ir)

update(ref, error)

Inputs should be of the shape (channels, numSamples)

Attributes

ir

update(ref, error)

Inputs should be of the shape (channels, numSamples)