From: <mtm...@us...> - 2012-08-15 14:41:04
|
Revision: 10879 http://octave.svn.sourceforge.net/octave/?rev=10879&view=rev Author: mtmiller Date: 2012-08-15 14:40:58 +0000 (Wed, 15 Aug 2012) Log Message: ----------- pei_tseng_notch: fix failing tests reported at bug #3553263 (Debian bug #664694). Modified Paths: -------------- trunk/octave-forge/main/signal/NEWS trunk/octave-forge/main/signal/inst/pei_tseng_notch.m Modified: trunk/octave-forge/main/signal/NEWS =================================================================== --- trunk/octave-forge/main/signal/NEWS 2012-08-15 13:41:35 UTC (rev 10878) +++ trunk/octave-forge/main/signal/NEWS 2012-08-15 14:40:58 UTC (rev 10879) @@ -9,7 +9,9 @@ column), the default values for grid_n and ramp_n, and returning an error when invalid values are used (instead of silently adjusting them). - ** Fixed failing test for the function `residued'. + ** Fixed failing tests for the following functions: + pei_tseng_notch + residued ** The function `rceps' was fixed to work correctly with odd-length inputs. Modified: trunk/octave-forge/main/signal/inst/pei_tseng_notch.m =================================================================== --- trunk/octave-forge/main/signal/inst/pei_tseng_notch.m 2012-08-15 13:41:35 UTC (rev 10878) +++ trunk/octave-forge/main/signal/inst/pei_tseng_notch.m 2012-08-15 14:40:58 UTC (rev 10879) @@ -91,7 +91,7 @@ %! [b, a] = pei_tseng_notch ( 50 / sf2, 2 / sf2 ); %! filtered = filter ( b, a, data ); %! damp_db = 20 * log10 ( max ( filtered ( end - 1000 : end, : ) ) ); -%! assert ( damp_db, [ -3 -251.9 -3 ], 0.1 ) +%! assert ( damp_db, [ -3 -251.9 -3 ], -0.1 ) %!test %! ##1Hz bandwidth @@ -100,7 +100,7 @@ %! [b, a] = pei_tseng_notch ( 50 / sf2, 1 / sf2 ); %! filtered = filter ( b, a, data ); %! damp_db = 20 * log10 ( max ( filtered ( end - 1000 : end, : ) ) ); -%! assert ( damp_db, [ -3 -240.4 -3 ], 0.1 ) +%! assert ( damp_db, [ -3 -240.4 -3 ], -0.1 ) %!demo %! sf = 800; sf2 = sf/2; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |