Skip to content

Instantly share code, notes, and snippets.

@kkmonster
Created May 9, 2015 17:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kkmonster/8b7129fe9a1001e48fcb to your computer and use it in GitHub Desktop.
Save kkmonster/8b7129fe9a1001e48fcb to your computer and use it in GitHub Desktop.
float Smooth_filter(float alfa, float new_data, float prev_data)
{
float output = prev_data + (alfa * (new_data - prev_data));
return output;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment