Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected float[] lowPass( float[] input, float[] output ) {
- if ( output == null )
- return input;
- for ( int i=0; i<input.length; i++ ) {
- output[i] = output[i] + ALPHA * (input[i] - output[i]);
- }
- return output;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement