Guest User

Untitled

a guest
Feb 24th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.11 KB | None | 0 0
  1. float state = 0;
  2.  
  3. float filter(int sample)
  4. {
  5. state = (1 * sample + 0.2 * state)/1.2;
  6.  
  7. return state;
  8. }
Add Comment
Please, Sign In to add comment