Dear Federico,

Thank you for the proposal.
I am afraid that the "symmetric" and "periodic" flag names are not intuitive to me. Indeed, the generated window is /always/ both periodic and symmetric. It is anyway "algorithmically seen" as periodic (from a spectral point of view), since it is regularly sampled, while regular-sampling and periodicity are FT-dual.

The point is that it is either *open*, or *closed* (what is rather expected, for a window. Sorry for the (serious) joke :-), with a closing point at the same level as the opening one.

I know from where these "symmetric" and "periodic" keyworks come from.
But, sorry, i can't resolve myself blindly copy others without discussion. Badly naming things usually become counterproductive, noticeably when teaching (here signal processing).

For contribution,

Best regards
Samuel


Le 11/02/2021 à 08:12, Federico Miyara a écrit :

Dear All,

I wonder why windowing functions such as Hann, Hamming, etc., provided by window(), are only symmetric.

When used for spectral analysis by subsequent use of fft(), the periodic weighting is better than the symmetric one. The symmetric window is mainly used in the design of FIR filters, which I guess is a less frequent application than spectral analysis.

While it is true that an easy workaround to get a periodic window of length n is, for instance

w = window("hn", n+1)(1:$-1);

a syntax such as this

w = window("hn", n, "per");

would be easier.Setting "sym" as the default option, no backward compatibility issues would possibly arise.

Regards,

Federico Miyara

<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> Libre de virus. www.avast.com <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users


_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users

Reply via email to