Re: [PATCH] Add generic exponentially weighted moving average function

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Bruno Randolf
Date: Wednesday, October 13, 2010 - 6:19 pm

On Wed October 13 2010 23:01:16 kevin granade wrote:

Yes, could be, but how? Another argument to the function call?
Actually AVG_FACTOR and 'samples' should stay constant for each struct, so we 
could also store them in the struct, but that would require an inititalization 
of the struct before we can use it.


Yes. I'll document this in the next version of the patch. Or should I use 
64bit for the internal representation?


Samples should never be 0. But I can add a WARN_ON...

bruno
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] Add generic exponentially weighted moving aver ..., Bruno Randolf, (Wed Oct 13, 6:19 pm)