Given a numeric vector, this function will return its windowed signal.

window_signal(
  values,
  window_length = 256,
  window_overlap = 0.5,
  window_name = "hamming"
)

Arguments

values

Timeseries vector of length n.

window_length

The number of samples per window.

window_overlap

Fraction in the interval [0, 1) specifying the amount of window overlap.

window_name

window name: bartlett, blackman, flattop, hamming, hanning, or rectangle. See ftwindow.

Value

A matrix of window_length x nwindows