SimpleDelayFilter

class lsst.ts.m2com.SimpleDelayFilter(coefficients: list[float], num_element: int)

Bases: object

Simple delay filter

Notes

This is a simplified implementation that considers the denominator of transfer function is 1:

H(z) = b0 + b1 * z ^ (-1) + b2 * z ^ (-2) + … + bN * z ^ (-N)

= Y(z) / X(z)

=> y[n] = b0 * x[n] + b1 * x[n-1] + b2 * x[n-2] + … + bN * x[n-N]

Parameters

coefficientslist

Filter coefficients: [b0, b1, b2, …, bN].

num_elementint

Number of the elements when calling the “filter()”.

Methods Summary

filter(value)

Filter the input value.

reset()

Reset the filter.

Methods Documentation

filter(value: ndarray[Any, dtype[float64]]) ndarray[Any, dtype[float64]]

Filter the input value.

Parameters

valuenumpy.ndarray

Input value with the same number of elements (aka. “num_element”) when initializing this class.

Returns

value_filternumpy.ndarray

Filtered value.

reset() None

Reset the filter.