Averager=function(i){return{c:i||0,t:i?1:0,average:function(){t=this;d=arguments;d=d[0]instanceof Array?d[0]:d;for(e in d)t.c=(t.c*t.t+d[e])/++t.t;return t},current:function(){return this.c},count:function(){return this.t}}};

function Averager(i){var c=i||0,t=i?1:0;return{current:function(){return c/t},count:function(){return t},average:function(){d=arguments;d=d[0]instanceof Array?d[0]:d;for(e in d)c+=d[e],t++;return this}}}

Update eff-avg.min.js