added halflife to exponentially weighted moving functions
Merge pull request #4998 from mortada/halflife

added halflife to exponentially weighted moving functions