From 8a9c3cda26a77301610d16c2e7da9703d897382d Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Wed, 14 Jul 2021 07:36:08 +0100 Subject: Update fir post for filter type table and code examples --- md/writeup/calculate_fir_coefficients_with_c.md | 66 ++++++++++++++++++++++++- 1 file changed, 64 insertions(+), 2 deletions(-) (limited to 'md') diff --git a/md/writeup/calculate_fir_coefficients_with_c.md b/md/writeup/calculate_fir_coefficients_with_c.md index e364eb4..295fa3f 100644 --- a/md/writeup/calculate_fir_coefficients_with_c.md +++ b/md/writeup/calculate_fir_coefficients_with_c.md @@ -12,7 +12,8 @@ and was able to use them just from tools that take as input parameters and give as output coefficients. Now time came just to calculate FIR from ground up. Also C is perfect to do stuff without abstraction levels hiding details, and can be ported to other languages and platforms. Lets calculate filter coefficients -with windows method. There is few more but those for later. +with windows method. Theory is not explained, there is a lot of playlists +on youtube and lecture notes online to check on that. ## Implementation @@ -29,7 +30,7 @@ MathJax = { Low pass ideal impulse response -Ideal impulse response of the filter +Ideal impulse response for low-pass filter $$2f_c\frac{sin(n \omega_c)}{n \omega_c}$$ @@ -75,6 +76,64 @@ for (i=0;i