I needed to implement a moving average that can handle missing data. The catch is that the number of data points to be considered should be a variable easy for me to adjust.
I have googled and came across this formula in http://eeandcs.blogspot.sg/2014/09/weighted-moving-averages-on-google.html
I need some help understanding this formula. I prefer to really grok it rather than do a copy paste job.