RunningAverage is one of our classes, basically it maintains a running 
average (surprise!).  The report method basically allows you to tell it 
a new value which it should add to the running average - the current 
average is retrieved using the currentValue() method.

Here is the code that implements it:
  
http://cvs.sourceforge.net/viewcvs.py/freenet/freenet/src/freenet/node/rt/DecayingRunningAverage.java?rev=1.3&content-type=text/vnd.viewcvs-markup

Feel free to ask any other questions, you may get a faster response on 
IRC of you join #freenet on irc.freenode.net - I am "sanity".

Ian.

On Wed, Oct 01, 2003 at 02:01:58PM -0700, Martin Stone Davis wrote:
> Okay, I started looking at the source.  Could you help me find 
> documentation on Java?  I tried googling for it but no luck finding 
> about the RunningAverage.report() method.
> _
> Ian Clarke wrote:
> >On Wed, Oct 01, 2003 at 01:13:36PM -0700, Martin Stone Davis wrote:
> >
> >>I have not RTFS, but I am pretty good with probabilities and statistics.
> >
> >
> >In that case you could really help us out if you could review the 
> >relevant source, since it is easy to have thinkos in this kind of code 
> >and very difficult to detect them based on node performance - only a 
> >review by someone comfortable with statistics will realistically pick 
> >them up.
> >
> >The relevant file is at:
> >http://cvs.sourceforge.net/viewcvs.py/freenet/freenet/src/freenet/node/rt/StandardNodeEstimator.java?rev=1.5&content-type=text/vnd.viewcvs-markup
> >
> >The variable names are pretty verbose so it should be easy enough to see 
> >what is going on even if you don't know Java.
> >
> >Ian.
> >
> 
> 
> _______________________________________________
> Devl mailing list
> [EMAIL PROTECTED]
> http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/devl

-- 
Ian Clarke                                                  [EMAIL PROTECTED]
Coordinator, The Freenet Project              http://freenetproject.org/
Weblog                               http://slashdot.org/~sanity/journal
_______________________________________________
Devl mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/devl

Reply via email to