On 05/07/2012 09:26 PM, Mike Miller wrote:
> On Mon, May 07, 2012 at 08:54:16PM -0500, Daniel J Sebald wrote:

>> Does that produce the result you are expecting James?
>
> But actually both the current and this behavior do not match ML's
> blackmanharris function, at least in the version I have at my disposal.
> Can anyone verify?
>
> I just ran it with a couple different lengths and it always returns an
> asymmetric window, whether the length is even or odd.  Can't say whether
> this is intentional, other window functions seem to be symmetric.

As to the question Mike raises, I'm assuming that the desire is a 
symmetric window as described in the Wiki and in many theoretical 
discussions.  However, the Wiki does say:

"A common desire is for an asymmetrical window called DFT-even[6] or 
periodic, which has a single maximum but an even number of samples 
(required by the FFT algorithm). Such a window would be generated by the 
Matlab function hann(512,'periodic'), for instance. Here, that window 
would be generated by N=513 and discarding the 513th element of the 
\scriptstyle w(n) sequence."

Note that 'periodic' is not interpreted in Octave.

Dan

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to