Example #1
0
 def test_locfreq(self):
     signal, _ = fm.fmlin(128, 0.05, 0.3, 50)
     input_avg_freq = (0.05 + 0.3) / 2.0
     avg_norm_freq, bandwidth = fproc.locfreq(signal)
     self.assertAlmostEqual(avg_norm_freq, input_avg_freq, places=2)
Example #2
0
 def test_locfreq(self):
     """Test calculation of localized frequency characteristics."""
     signal, _ = fm.fmlin(128, 0.05, 0.3, 50)
     input_avg_freq = (0.05 + 0.3) / 2.0
     avg_norm_freq, bandwidth = fproc.locfreq(signal)
     self.assertAlmostEqual(avg_norm_freq, input_avg_freq, places=2)
Example #3
0
 def test_locfreq(self):
     signal, _ = fm.fmlin(128, 0.05, 0.3, 50)
     input_avg_freq = (0.05 + 0.3) / 2.0
     avg_norm_freq, bandwidth = fproc.locfreq(signal)
     self.assertAlmostEqual(avg_norm_freq, input_avg_freq, places=2)
Example #4
0
 def test_locfreq(self):
     """Test calculation of localized frequency characteristics."""
     signal, _ = fm.fmlin(128, 0.05, 0.3, 50)
     input_avg_freq = (0.05 + 0.3) / 2.0
     avg_norm_freq, bandwidth = fproc.locfreq(signal)
     self.assertAlmostEqual(avg_norm_freq, input_avg_freq, places=2)