def test_fourier_entropy(self):
        self.assertAlmostEqualOnAllArrayTypes(
            fourier_entropy, [1, 2, 1], 0.693147180, bins=2
        )
        self.assertAlmostEqualOnAllArrayTypes(
            fourier_entropy, [1, 2, 1], 0.693147180, bins=5
        )

        self.assertAlmostEqualOnAllArrayTypes(
            fourier_entropy, [1, 1, 2, 1, 1, 1, 1], 0.5623351446188083, bins=5
        )
        self.assertAlmostEqualOnAllArrayTypes(
            fourier_entropy, [1, 1, 1, 1, 2, 1, 1], 1.0397207708399179, bins=5
        )

        self.assertAlmostEqualOnAllArrayTypes(
            fourier_entropy,
            [-1, 4.3, 5, 1, -4.5, 1, 5, 7, -3.4, 6],
            1.5607104090414063,
            bins=10,
        )
        self.assertIsNanOnAllArrayTypes(
            fourier_entropy, [-1, np.nan, 5, 1, -4.5, 1, 5, 7, -3.4, 6], bins=10
        )