Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 36591

In signal processing, a filter is a device or process that transforms a signal by selectively choosing specific frequencies and leaving others with appropriate gain or as it is.

0 votes
1 answer
2k views

How to correctly set the zi parameter (initial condition) for a scipy IIR filter

Let's take as an example an IIR filter using the 'sos' output, as this is what I use the most. To apply a bandpass filter, you can do: from scipy.signal import butter, sosfilt fs = 512 # Sampling rat …
Mathieu's user avatar
  • 213
1 vote
1 answer
55 views

Initial conditions for 2 IIR causal filters applied to the same time-series consecutively

This buffer and all the new samples are filtered with IIR causal filters, but different channels might be filtered by different filters. … Assuming I have 6 channels (0-indexed), and 2 filters: filter1 applied to channels 0, 1, 2, 3 filter2 applied to channels 2, 3, 4, 5 How should I handle the initial conditions zi used for new_data on …
Mathieu's user avatar
  • 213
2 votes
1 answer
1k views

Applying a lowpass filter to a noisy square signal leads to a shift of the signal

cutoff, fs, order=5): nyq = 0.5 * fs normal_cutoff = cutoff / nyq b, a = bessel(order, normal_cutoff, btype='low', analog=False) y = lfilter(b, a, data) return y I then call both filters
Mathieu's user avatar
  • 213
2 votes
0 answers
600 views

Filtering a square signal with a median filtering to preserve the edges

If needed, you can find my first post for this problem here. I am trying to clean the following signal: As proposed in the comment, I tried to use this post proposing 2 methods: median filtering and …
Mathieu's user avatar
  • 213
0 votes
1 answer
160 views

Problem wih (diverging?) digital IIR filter for an online acquisition system

I am trying to plot windows of acquired data from an LSL-compatible system. For the example below, let's consider 1-second window of a 64 channel EEG system. In practice, I use shorter 0.2-window, but …
Mathieu's user avatar
  • 213