Bug 1123 - Class MinMaxAvgTotalCalculator does not implement all the methods in its interface
Class MinMaxAvgTotalCalculator does not implement all the methods in its inte...
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: general
ns-3-dev
All All
: P5 minor
Assigned To: Mitch Watrous
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-05-03 09:43 UTC by Jaume Nin
Modified: 2011-06-08 14:55 UTC (History)
1 user (show)

See Also:


Attachments
Patch with the implementation of the unsupported methods (1.51 KB, patch)
2011-05-03 09:45 UTC, Jaume Nin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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