bugGNU Octave - Bugs: bug #38528, signal package: ellipord outputs...

 
 

bug #38528: signal package: ellipord outputs complex filter order for high-pass filter

Submitted by:  None
Submitted on:  Sat 16 Mar 2013 01:58:34 PM UTC  
 
Category: Octave Forge PackageSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Originator Email: -unavailable-
Open/Closed: ClosedRelease: dev
Operating System: Any

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 23 Jan 2014 06:24:54 AM UTC, comment #2:

This bug has been fixed, the fix will be part of the next signal package release.

http://sf.net/p/octave/signal/ci/98f483

Mike Miller <mtmiller>
Project Member
Sat 16 Mar 2013 06:11:21 PM UTC, comment #1:

Confirmed, the current ellipord implementation assumes low-pass when the first two arguments are scalars.

Mike Miller <mtmiller>
Project Member
Sat 16 Mar 2013 01:58:34 PM UTC, original submission:

When using the function ellipord to calculate the order of a high-pass* Cauer filter, it returns a complex number whereas the order of a filter should always be a real and positive integer. The following line reproduces the issue:

>> ellipord(0.955,0.945,1,20)

output: ans = 4 - 2i

Based on order calculations of bandpass filters and a lowpass filter with the same distance between the passband an the stopband, maximum passband attenuation and minimum stopband attenuation, an order of 3 or 4 is expected. A file with all calculated filters is attached.

*High-pass filter: a filter with only one passband edge and one stopband edge with the passband edge at a higher frequency than the stopband edge. In other words, all frequencies beneath the stopband edge are suppressed and all frequencies above the passband edge are preserved.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #27612:  reproduce_ellipord_bug.m added by None (1kB - text/x-objcsrc)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 23 Jan 2014 06:24:54 AM UTCmtmillerStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Sat 16 Mar 2013 06:11:21 PM UTCmtmillerStatusNone=>Confirmed
      Release3.2.4=>dev
      Operating SystemGNU/Linux=>Any
      SummaryFunction ellipord outputs complex filter order for high-pass filter=>signal package: ellipord outputs complex filter order for high-pass filter
    Sat 16 Mar 2013 01:58:34 PM UTCNoneAttached File-=>Added reproduce_ellipord_bug.m, #27612

    Back to the top


    Powered by Savane 3.1-cleanup