The purpose of changing the window function from a rectangular window to Hamming or Blackman windows is to reduce the sidelobe amplitude while increasing the transition band width. The rectangular window has the smallest transition width but the highest sidelobe amplitude, whereas other windows provide reduction in side lobes, but at the expense of increased transition widths.