Bug 1123

Summary: Class MinMaxAvgTotalCalculator does not implement all the methods in its interface
Product: ns-3 Reporter: Jaume Nin <jaume.nin>
Component: generalAssignee: Mitch Watrous <watrous>
Status: RESOLVED FIXED    
Severity: minor CC: tomh
Priority: P5    
Version: ns-3-dev   
Hardware: All   
OS: All   
Attachments: Patch with the implementation of the unsupported methods

Description Jaume Nin 2011-05-03 09:43:05 UTC
Class MinMaxAvgTotalCalculator only implements the min max and the average calculations, the other ones (standard deviation, sum, squared sum and variance) are not supported.
Comment 1 Jaume Nin 2011-05-03 09:45:05 UTC
Created attachment 1104 [details]
Patch with the implementation of the unsupported methods
Comment 2 Mitch Watrous 2011-06-08 14:53:52 UTC
Negative variance values caused by roundoff can occur if you use standard formulas for the variance found in statistics text books.

Therefore, I calculated the variance based on equations (15) and (16) on page 216 of "The Art of Computer Programming, Volume 2", Second Edition. Donald E. Knuth. Addison-Wesley Publishing Company, 1973.
Comment 3 Mitch Watrous 2011-06-08 14:55:20 UTC
Bug closed.

ns-3-dev changeset:  4f64f4298183