[Ns-bugs] [Bug 762] Correcting stderr formula in average.h

code@nsnam.ece.gatech.edu code at nsnam.ece.gatech.edu
Fri Dec 11 02:43:36 PST 2009


http://www.nsnam.org/bugzilla/show_bug.cgi?id=762





--- Comment #4 from Pavel Boyko <boyko at iitp.ru>  2009-12-11 05:43:36 EDT ---
(In reply to comment #3)
> Generally fine by me. Some small points:
> 
> Changing Err() -> Stddev() is good, but you also have to fix some line in the
> udp-helper.

  I can't find udp-helper, but sure I will update all API usage instances.

> Why do you Size() - 1? I believe m_size is the number of samples, and its plain
> sqrt(n) in the formula.

  That's because you can't estimate the error of the mean from single sample
(count = 1 => error = \infty). Take a look at
http://mathworld.wolfram.com/SampleVariance.html

-- 
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the Ns-bugs mailing list