### 21.5.4 Bohman window

The bohman_window command applies the Bohman window function to a sequence or its segment.

- bohman_window takes one mandatory argument and two optional arguments:
  - v, a real vector with length n.
  - Optionally, m, N, a sequence of two integers (by default, m=0 and N=n).
- bohman_window returns the elementwise product of [vm,vm+1,…,vm+N−1] and the vector w of length N defined by

  wk= | ⎛ ⎝ | 1−xk | ⎞ ⎠ | cos | ⎛ ⎝ | π xk | ⎞ ⎠ | + |
  1
  π
  | sin | ⎛ ⎝ | π xk | ⎞ ⎠ | ,

  where xk=|2 k/N−1−1| for k=0,1,…,N−1.

#### Example

listplot(bohman_window([1$1000]))