parzenwin
Parsen’s window.
| Library |
|
Arguments
Input arguments
# L — window length
+
scalar
Details
The window length specified as a positive integer.
If you specify L as a non-integer, the function will round it to the nearest integer value.
|
| Типы данных |
|
Output arguments
# w —
Parsen’s window
column vector
Details
The Parsen window returned as a column vector of length L. For the equations defining the Parsen window, see Algorithms.
Examples
Parsen and Gauss windows
Details
Let’s compare the Parsen and Gauss windows generated by 64 points. Display the result using plot.
import EngeeDSP.Functions: gausswin
import EngeeDSP.Functions: parzenwin
using Plots
gw = gausswin(64)
pw = parzenwin(64)
plot(gw,
label = "Gaussian Window",
xlabel = "Sample Number",
ylabel = "Amplitude",
linewidth = 2,
color = :blue,
grid = true)
plot!(pw,
label = "Parzen Window",
linewidth = 2,
color = :red)
