code: def testBoundaryCase(self):
      # one peak is under maxFrequency bound and the other is outside
      maxFrequency = 100
  
      # The following bound looks weird because it is calculated in the same
      # way as it is in the algorithm. I don't really understand the 1.2, but
      # the 100 is to make sure that the frequency falls within the domain
      # of points fed to the internal BPF algorithm since 100 is used as the
      # resolution of the BPF. -rtoscano
      bound = maxFrequency * 1.2 - 100
      bound -= (
          1e-5  # imprecision due to rounding errors between platforms
      )
  
      freqs = [bound, bound + 1]
      mags = [1, 1]
      whitener = SpectralWhitening(maxFrequency=maxFrequency)
      expected = [0.9885531068, 1.0]  # Only the first mag is whitened
      actual = whitener(list(range(0, 100)), freqs, mags)
      self.assertAlmostEqualVector(actual, expected)
  
file_path: essentia/test/src/unittests/spectral/test_spectralwhitening.py
imports: from essentia_test import *
label_desc: Use image node_id 7 for calling the TestSpectralWhitening obj's underlying member method code with example usage: obj.testBoundaryCase() without return types