Mercurial > forge
changeset 9620:22fc7f0bd338 octave-forge
signal: adding tolerance to test of transposed. Potntially a bug.
author | jpicarbajal |
---|---|
date | Sat, 10 Mar 2012 12:44:08 +0000 |
parents | bf1a6199ecf6 |
children | bd7fb43a670e |
files | main/signal/inst/rceps.m |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/main/signal/inst/rceps.m Sat Mar 10 12:40:15 2012 +0000 +++ b/main/signal/inst/rceps.m Sat Mar 10 12:44:08 2012 +0000 @@ -73,8 +73,9 @@ %! x=randn(256,1); %! [y, xm] = rceps(x); %! [yt, xmt] = rceps(x.'); -%! assert(yt.', y); -%! assert(xmt.', xm); +%! tol = 1e-14; +%! assert(yt.', y, tol); +%! assert(xmt.', xm, tol); %!demo %! f0=70; Fs=10000; # 100 Hz fundamental, 10kHz sampling rate @@ -87,7 +88,7 @@ %! figure(1); %! subplot(311); %! auplot(x,Fs,'b',';signal;'); -%! hold on; auplot(xm,Fs,'g',';reconstruction;'); +%! hold on; auplot(xm,Fs,'g',';reconstruction;'); %! hold off; %! subplot(312); %! axis("ticy");