comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » bug in IDL's hanning() window-generating function
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: bug in IDL's hanning() window-generating function [message #26095 is a reply to message #26043] Fri, 03 August 2001 14:54 Go to previous message
Harold Cline is currently offline  Harold Cline
Messages: 13
Registered: September 2000
Junior Member
Just an FYI for everyone on this topic. ;-)

Thanks,
Harold Cline
IDL Product Manager

------------------------------------------
RELEASE_NOTE for IDL5.5:
HANNING:
The formula to compute the Hanning window has been changed
from 0.5 * (1-Cos(2*!Pi*k/(N-1))) to 0.5 * (1-Cos(2*!Pi*k/N)).
Because of the change from 1/(N-1) to 1/N, the Hanning window will no longer
appear symmetric in the time domain, but will give improved results for
spectral estimation.

Additional notes:

When filters such as the Hanning are to be used as finite-impulse response
(FIR) filtering in the time domain, it is useful to have the filter be
symmetric, and go to zero at both ends. However, if you are filtering your
time series in preparation for doing spectral analysis, the filter should
not be symmetric, and should not go to zero at one of the endpoints. Thus,
the new behavior of the HANNING function assumes it will be used for
spectral analysis.

Reference: Oppenheim & Schafer (Discrete-Time Signal Processing, 1999), p.
468-469.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Objects with Widgets, Save/Restore
Next Topic: TeXtoIDL source?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:11:10 PDT 2025

Total time taken to generate the page: 0.00168 seconds