Common window functions are used in signal processing to shape signals before analysis. The process starts by selecting a window type, then generating its values using a formula. For example, the Hann window uses a cosine formula to create values that start and end at zero and peak in the middle. These values are applied to the signal to reduce edge effects. The code example shows creating a Hann window of length 5, producing values [0.0, 0.5, 1.0, 0.5, 0.0]. Each step computes one value, starting from index 0 to 4. The window helps prepare signals for filtering or Fourier analysis by tapering edges smoothly.