Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. FIRaccum[0]=SINLUT[0];
  2. FIRaccum[1]=SINLUT[1] + 3 * SINLUT[0];
  3. FIRaccum[2]=SINLUT[2] + 3 * SINLUT[1] + 3 * SINLUT[0];
  4. FIRaccum[3]=SINLUT[3] + 3 * SINLUT[2] + 3 * SINLUT[1] + 4 * SINLUT[0];
  5. for(int i = 4; i<=4095;){
  6. FIRaccum[i] = 0.0831*(SINLUT[i] + 3*SINLUT[i-1] + 3*SINLUT[i-2] + SINLUT[i-3] + 4*SINLUT[i-4]);
  7. i+=STEPSIZE;
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement