code: def testRegression(self):
      inputSignal = numpy.sin(
          numpy.arange(1024, dtype="f4") / 1024.0 * 441 * 2 * math.pi
      )
      expected = readComplexVector(
          join(filedir(), "fft", "fft_output.txt")
      )
      expected = expected[: int(len(inputSignal) / 2) + 1]
  
      # readjust to our precision, otherwise 0.001 compared to 1e-12 would
      # give a 1e9 difference...
      for i, value in enumerate(expected):
          if abs(value) < 1e-7:
              expected[i] = 0 + 0j
  
      self.assertAlmostEqualVector(FFT()(inputSignal), expected, 1e-2)
  
file_path: essentia/test/src/unittests/standard/test_fft.py
imports: from essentia_test import *
  import math
label_desc: Use image node_id 5 for calling the TestFFT obj's underlying member method code with example usage: obj.testRegression() without return types