pygsti.extras.drift.signal.lowpass_filter#
- lowpass_filter(data, max_freq=None)#
Implements a low-pass filter on the input array, by DCTing the input, mapping all but the lowest max_freq modes to zero, and then inverting the transform.
- Parameters:
data (numpy.array,) – The vector to low-pass filter
max_freq (None or int, optional) – The highest frequency to keep. If None then it keeps the minimum of 50 or l/10 frequencies, where l is the length of the data vector
- Returns:
The low-pass-filtered data.
- Return type:
numpy.array