def overlap_correlation(wnd, hop):
  """ Overlap correlation percent for the given overlap hop in samples. """
  return sum(wnd * Stream(wnd).skip(hop)) / sum(el ** 2 for el in wnd)
Overlap correlation percent for the given overlap hop in samples.