On Thursday 03 January 2008 16:12, Robert Hailey wrote:
> 
> On Jan 3, 2008, at 9:03 AM, Matthew Toseland wrote:
> 
> > Useful class, but I'm really not convinced it's statistically sound.  
> > You need
> > to normalize the stored value after every operation, otherwise as it  
> > gets
> > larger, you will get bigger jumps when values are reported. In order  
> > to do
> > this, you probably need to extend BDRA; put some hooks in.
> 
> Hmmm... yes, in review you are right, as averaging is not linear as  
> such:
> assume: avg(a, b, c... x, y) = z
> then: avg(a+1, b+1, c+1... x+1, y+1) != z+1
> 
> An implementation using normalized stored values is possible by adding  
> a single package-hook: setCurrentValue(double d);
> Then, in the averager, on report() to call  
> avg.setCurrentValue(Location.normalize(avg.currentValue());
> 
> Implemented in r16855.

Cool.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20080103/b3004443/attachment.pgp>

Reply via email to