octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #51657] gausswin produces slightly wrong resul


From: anonymous
Subject: [Octave-bug-tracker] [bug #51657] gausswin produces slightly wrong result
Date: Fri, 4 Aug 2017 07:55:33 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0

URL:
  <http://savannah.gnu.org/bugs/?51657>

                 Summary: gausswin produces slightly wrong result
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Fri 04 Aug 2017 11:55:32 AM UTC
                Category: Octave Forge Package
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Inaccurate Result
                  Status: None
             Assigned to: None
         Originator Name: HÃ¥kon A. Hjortland
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.0
        Operating System: GNU/Linux

    _______________________________________________________

Details:


MATLAB: gausswin(3)' = [0.0439  1.0000  0.0439]
Octave: gausswin(3)' = [0.24935 1.00000 0.24935]

This is less pronounced for normal window lengths, though.

Looking at the algorithms section at
https://www.mathworks.com/help/signal/ref/gausswin.html
it seems that in signal-1.3.2/gausswin.m in the line

w = exp ( -0.5 * ( a/m * [ -(m-1) : 2 : m-1 ]' ) .^ 2 );

the expression a/m should be changed to a/(m-1).





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?51657>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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