Menu

About the fir bandpass filter function; fir1_bp

Kota
2021-02-24
2021-02-24
  • Kota

    Kota - 2021-02-24

    <meta content="text/html; charset=utf-8" http-equiv="Content-Type"><meta content="Microsoft Word 15 (filtered medium)" name="Generator"><style><!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:"Yu Gothic"; panose-1:2 11 4 0 0 0 0 0 0 0;} @font-face {font-family:"Yu Gothic"; panose-1:2 11 4 0 0 0 0 0 0 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0mm; text-align:justify; text-justify:inter-ideograph; font-size:10.5pt; font-family:"游ゴシック",sans-serif;} .MsoChpDefault {mso-style-type:export-only;} /* Page Definitions */ @page WordSection1 {size:612.0pt 792.0pt; margin:99.25pt 30.0mm 30.0mm 30.0mm;} div.WordSection1 {page:WordSection1;} --></style>

    Hi,<o:p></o:p>

    <o:p> </o:p>

    I am very new for signal processing.<o:p></o:p>

    I tried to extract the time series signal filtered over the specific range of frequency.<o:p></o:p>

    However, the result was different from expected and was time shifted signal.<o:p></o:p>

    After the survey, I found the group delay of FIR filter.<o:p></o:p>

    And then, I corrected the output of fir1_bp() by using group delay ((N-1)T/2)).<o:p></o:p>

    I want to have confidence this procedure.<o:p></o:p>

    I am wondering this procedure is ok or not ?<o:p></o:p>

    <o:p> </o:p>

    Cheers<o:p></o:p>

     
  • Claes Rolen

    Claes Rolen - 2021-02-24

    Hi, glad you are using Sigpack. The group delay of a linear phase FIR filter, of order N (which gives you N+1 coefficients), is N/2 samples. This means that fir1_bp(8,0.35,0.65) will give a group delay of 4 samples and fir1_bp(9,0.35,0.65) will have 4.5. It mimics the Matlab functions and gives more or less bit exact results. Hope this answers your question, you may Google FIR filter group delay if you want some more details.
    // BR Claes

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.