octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: test fftfilt fail w/ current tip


From: Dmitri A. Sergatskov
Subject: Re: test fftfilt fail w/ current tip
Date: Tue, 23 Jul 2013 21:07:51 -0500

On Tue, Jul 23, 2013 at 7:46 PM, Daniel J Sebald <address@hidden> wrote:

I looks like the test that is failing is supposed to test the arithmetic of the case when the inputs are not integer.  When the inputs are integer (second column), the result is "cast" to integer by dropping the floating portion.  In the first column the inputs are not all integer so the epsilon should be left intact.  However, perhaps because of machine precision the epsilon is being lost and it just so happens the output is exactly 1.

Dmitri, on your system, please test a larger discrepancy, say 2*eps or 3*eps:

assert (fftfilt (b, [x.'+2*eps x.']) == [1 1 0 0 0 0 0 0 0 0].'*[1 1], [false(10, 1) true(10, 1)]);



Test passes with 2*eps.
 
Dan

Dmitri.
--



reply via email to

[Prev in Thread] Current Thread [Next in Thread]