How to calculate the computational complexity of filtfilt low-pass filter?

7 ビュー (過去 30 日間)
I have a signal 'x' of length N which I perform lowpass filtering with matlab filtfilt. a and b are filter coefficients.
Is it possible to calculate its complexity in terms of Big O like O(...)?
y = filtfilt(b,a,x)

採用された回答

Bruno Luong
Bruno Luong 2023 年 10 月 30 日
filtfilt just do twice (forward + backward) the filter. In your case it is IIR, where the complexity is
O((length(a)+length(b))*N)
  5 件のコメント
Bruno Luong
Bruno Luong 2023 年 10 月 31 日
Plus
O(N*(length(a)+length(b)))

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDigital Filtering についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by