From c0500652b0cd057cd0d1cd800f57b2c6f76ada99 Mon Sep 17 00:00:00 2001 From: Haakon Ludvig Langeland Ervik <45243236+haakon-e@users.noreply.github.com> Date: Tue, 28 Nov 2023 16:38:19 -0800 Subject: [PATCH] update tukey docs fix docs typos in definition of tukey window --- src/windows.jl | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/windows.jl b/src/windows.jl index 68dea322e..dd1687943 100644 --- a/src/windows.jl +++ b/src/windows.jl @@ -223,18 +223,20 @@ window. For `α == 1`, the window is a Hann window. The window is defined by sampling the continuous function: - ⎛ ⎛ ⎛ 1 - α⎞⎞ - ⎜ 1 + cos ⎜2πα ⎜x + ─────⎟⎟ 1 - α - ⎜ ⎝ ⎝ 2 ⎠⎠ x ≤ ───── - ⎜ ───────────────────────── 2 + ⎛ ⎛2π ⎛ 1 - α⎞⎞ + ⎜ 1 + cos ⎜── ⎜x + ─────⎟⎟ 1 - α + ⎜ ⎝ α ⎝ 2 ⎠⎠ x ≤ - ───── + ⎜ ───────────────────────── 2 ⎜ 2 ⎜ - w(x) = ⎜ 1 -α/2 < x ≤ α/2 + ⎜ 1 - α 1 - α + w(x) = ⎜ 1 - ───── < x ≤ ───── + ⎜ 2 2 ⎜ - ⎜ ⎛ ⎛ 1 - α⎞⎞ - ⎜ 1 + cos ⎜2πα ⎜x - ─────⎟⎟ 1 - α - ⎜ ⎝ ⎝ 2 ⎠⎠ x > ───── - ⎜ ───────────────────────── 2 + ⎜ ⎛2π ⎛ 1 - α⎞⎞ + ⎜ 1 + cos ⎜── ⎜x - ─────⎟⎟ 1 - α + ⎜ ⎝ α ⎝ 2 ⎠⎠ x > ───── + ⎜ ───────────────────────── 2 ⎝ 2 in the range `[-0.5, 0.5]`