[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #33883] unwrap works correctly only if the del
From: |
Andriy Shinkarchuck |
Subject: |
[Octave-bug-tracker] [bug #33883] unwrap works correctly only if the deltas <4*pi |
Date: |
Sun, 31 Jul 2011 18:43:06 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:2.0) Gecko/20100101 Firefox/4.0 |
Follow-up Comment #3, bug #33883 (project octave):
Patch is ready!
unwrap.m: Fix incorrect behavior when unwrapping gaps larger then 2*pi with
tests for it (Bug #33883)
I have modified unwrap.m in such way, that it multiplies kronecker deltas by
smallest integer not less than integral part from dividing differencies
between neighbour elements by rng, which equals 2*pi.
Thus incorrect behaviour in unwrapping only for 2*pi after first unwrap()
call, and by 2*pi at every unwrap() call fixed.
Also i have modified comment to corrected line where p (peaks) calculated and
added usual tests for checking of correct passing default parametres, tests
for checking unwrap() for gaps larger then 2*pi and error test.
(file #23718)
_______________________________________________________
Additional Item Attachment:
File name: my_fix.patch Size:1 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?33883>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/