Created
September 20, 2015 01:05
-
-
Save joshuagruenstein/a6a645291bdd716f8726 to your computer and use it in GitHub Desktop.
i hate you right now
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
double movingAvg(double avg, double newVal, double len) { | |
avg -= avg/len; | |
avg += newVal/len; | |
return avg; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment