docs: def generateComponent(m):
      """Creates oscillating components to be mixed"""
      freq = 25*np.random.random()
      phase = 2*np.pi*np.random.random()
      x = np.arange(m)
      return np.cos(x/freq-phase)**2