code: def sqd_yintapered(samples):
      """compute tappered sum of squared difference
  
      Brute-force computation (cost o(N**2), slow)."""
      B = len(samples)
      W = B // 2
      yin = np.zeros(W)
      for tau in range(1, W):
          for j in range(W - tau):
              yin[tau] += (samples[j] - samples[j + tau]) ** 2
      return yin
  
file_path: aubio/python/demos/demo_yin_compare.py
imports: import sys
  import numpy
  import matplotlib.pyplot
label_desc: Use image node_id 3 for calling a global function with example usage: sqd_yintapered(samples) and returns: yin