Bug 1122

Summary: spectrum-value test should check tolerance on a per-value basis
Product: ns-3 Reporter: Nicola Baldo <nicola>
Component: spectrumAssignee: Nicola Baldo <nicola>
Status: RESOLVED FIXED    
Severity: minor CC: ns-bugs
Priority: P5    
Version: ns-3-dev   
Hardware: All   
OS: All   

Description Nicola Baldo 2011-05-03 05:56:56 UTC
The spectrum-value test checks if two SpectrumValue instances match by testing the norm of the difference between the two spectrum values against a tolerance. This is not appropriate because the effect of the tolerance is proportional to the norm, which gets larger as the number of elements in the SpectrumValue (i.e., the number of bands in the SpectrumModel being used) get larger.

The correct behavior is to test equality within tolerance on a per-element basis.
Comment 1 Nicola Baldo 2011-05-03 06:27:41 UTC
changeset:   7124:058f6ecace0c
tag:         tip
user:        Nicola Baldo <nbaldo@cttc.es>
date:        Tue May 03 12:26:55 2011 +0200
summary:     fixed Bug 1122 - spectrum-value test should check tolerance on a per-value basis