[Click] About the Counter element

Roberto Riggio rriggio at create-net.org
Mon May 28 12:15:53 EDT 2007


Hi,

from the click documentation i read that the counter element:

"Returns the recent arrival rate, measured by exponential 
weighted moving average, in packets per second."

However i do not understand how to set the smoothing factor. 
I gave a look at ewma.hh and i saw that you ewma class used in
counter uses 1 as value for N so also the smoothing factor 
would be 1 in this case. 

So as far as I've understood i should use the EWMAX class in
order to implement my own exponential average. Do you have
any documentation about this class?

Thanks

-- 
--------------------------------------------------------
Roberto Riggio
CREATE-NET
PhD Student

Via Solteri, 38 - 38100 Trento - Italy
e-mail: roberto.riggio at create-net.org

Tel: (+39) 0461 408400 - interno/extension 708
Fax: (+39) 0461 421157

 http://www.create-net.org/
--------------------------------------------------------


More information about the click mailing list