On Fri, Oct 03, 2003 at 01:35:22AM -0700, Edward J. Huff wrote:
> Update of /cvsroot/freenet/freenet/src/freenet/node/states/announcing
> In directory 
> sc8-pr-cvs1:/tmp/cvs-serv20832/freenet/src/freenet/node/states/announcing
> 
> Modified Files:
>       Announcing.java 
> Log Message:

> (DecayingTimeWeightedAverage) New private class,
>   with method average(now, start, events)
>   calculates average events per unit time, decaying
>   with half-life specified in constructor.  
>   If value was A events/hour, and subsequent
>   calls submit B events/hour, after one half-life,
>   the average will be (A+B)/2, and after two,
>   the average will be (A+3B)/2.  Exponential decay.
>   Probably should be moved into utilities...

Should we use this in the estimators?

-- 
Matthew J Toseland - [EMAIL PROTECTED]
Freenet Project Official Codemonkey - http://freenetproject.org/
ICTHUS - Nothing is impossible. Our Boss says so.

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Devl mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/devl

Reply via email to