Comparing version 0.0.8 to 0.0.9
@@ -18,2 +18,3 @@ import * as utils from './utils' | ||
let _isFirstTimeCall = true | ||
let curMoment=0; | ||
@@ -76,5 +77,11 @@ return () => { | ||
return energyScore | ||
// un-smoothed value | ||
// return energyScore | ||
// smooth using momentum | ||
curMoment = ((1-0.9)*energyScore) + (0.9*curMoment) | ||
return curMoment | ||
} | ||
} |
{ | ||
"name": "emellib", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "homepage": "https://www.crejo.fun/", |
480485
2829