Banco de Filtro

Embed Size (px)

Citation preview

  • 7/24/2019 Banco de Filtro

    1/3

    #include#include#include#define N 6#define M 20/*float h0[N]= {0.035226291882101,-0.085441273882241,-0.135011020010391,0.459877502119331,0.806891509313339,0.332670552950957};float h1[N]= {-0.332670552950957,0.806891509313339,-0.459877502119331,-0.135011020010391,0.085441273882241,0.035226291882101};float g0[N]= {0.332670552950957,0.806891509313339,0.459877502119331,-0.135011020010391,-0.085441273882241,0.035226291882101};float g1[N]= {0.035226291882101,0.085441273882241,-0.135011020010391,-0.459877502119331,0.806891509313339,-0.332670552950957};*/

    float h[2][N] = {0.035226291882101,-0.085441273882241,-0.135011020010391,0.459877502119331,0.806891509313339,0.332670552950957, //h0-0.332670552950957,0.806891509313339,-0.459877502119331,-0.135011020010391,0.085441273882241,0.035226291882101}; //h1

    float g[2][N] = {0.332670552950957,0.806891509313339,0.459877502119331,-0.135011020010391,-0.0854

    41273882241,0.035226291882101,0.035226291882101,0.085441273882241,-0.135011020010391,-0.459877502119331,0.806891509313339,-0.332670552950957};

    short x[M]= {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20};int Nc=2;float xb[N]={0,0,0,0,0,0};float xbb[2][N] = {0,0,0,0,0,0,0,0,0,0,0,0};float xh[2][1] = {0,0};

    float xhd[2][1] = {0,0};float xhdu[2][1] = {0,0};float xhdug[2][N] = {0,0,0,0,0,0,0,0,0,0,0,0};int n, k, l, i, lx=M;

    float xrec;

    main(){

    for(n=0;n

  • 7/24/2019 Banco de Filtro

    2/3

    0,0};

    for(k=0;k

  • 7/24/2019 Banco de Filtro

    3/3

    {short v1=0;

    if(n