#
# Copyright © 2015 jaidev <jaidev@newton>
#
# Distributed under terms of the MIT license.
"""
==============================================
Wideband Ambiguity Function of an Altes Signal
==============================================

For wideband signals, the narrow band ambiguity function is not appropriate for
wideband signals. So we consider a wide band ambiguity function. This function
is equivalent to the wavelet transform of a signal whose mother wavelet is the
signal itself.

Figure 4.25 from the tutorial.

"""

from tftb.generators import altes
from tftb.processing.ambiguity import wide_band
import matplotlib.pyplot as plt
import numpy as np

signal = altes(128, 0.1, 0.45)
waf, tau, theta = wide_band(signal, 0.1, 0.35, 64)
plt.contour(tau, theta, np.abs(waf)**2)
plt.xlabel("Delay")
plt.ylabel("Log(Scale)")
plt.title("Wide Band Ambiguity Function")
plt.show()
Exemplo n.º 2
0
 def setUp(self):
     self.signal = altes(128, 0.1, 0.45)
     self.tfr, self.tau, self.theta = ambiguity.wide_band(self.signal)
Exemplo n.º 3
0
 def setUp(self):
     self.signal = altes(128, 0.1, 0.45)
     self.tfr, self.tau, self.theta = ambiguity.wide_band(self.signal)
# Copyright © 2015 jaidev <jaidev@newton>
#
# Distributed under terms of the MIT license.

"""
==============================================
Wideband Ambiguity Function of an Altes Signal
==============================================

For wideband signals, the narrow band ambiguity function is not appropriate for
wideband signals. So we consider a wide band ambiguity function. This function
is equivalent to the wavelet transform of a signal whose mother wavelet is the
signal itself.

Figure 4.25 from the tutorial.

"""

from tftb.generators import altes
from tftb.processing.ambiguity import wide_band
import matplotlib.pyplot as plt
import numpy as np

signal = altes(128, 0.1, 0.45)
waf, tau, theta = wide_band(signal, 0.1, 0.35, 64)
plt.contour(tau, theta, np.abs(waf) ** 2)
plt.xlabel("Delay")
plt.ylabel("Log(Scale)")
plt.title("Wide Band Ambiguity Function")
plt.show()