Bugzilla – Bug 1122
spectrum-value test should check tolerance on a per-value basis
Last modified: 2011-05-03 06:27:41 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.
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