Skip to content

Commit

Permalink
update tukey docs
Browse files Browse the repository at this point in the history
fix docs typos in definition of tukey window
  • Loading branch information
haakon-e authored and wheeheee committed Feb 5, 2024
1 parent 5463608 commit c050065
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/windows.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
⎛ ⎛ ⎛ 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
⎜ ⎛ ⎛ 1 - α⎞⎞
⎜ 1 + cos ⎜── ⎜x - ─────⎟⎟ 1 - α
⎜ ⎝ α ⎝ 2 ⎠⎠ x > ─────
⎜ ───────────────────────── 2
⎝ 2
in the range `[-0.5, 0.5]`
Expand Down

0 comments on commit c050065

Please sign in to comment.