The codes in this following script will be used for the publication of the following work
"Exploring Acoustic Emission Monitoring during Laser Powder Bed Fusion of premixed Ti6Al4V-Fe powder: Evidence of martensitic phase transformation supported by operando X-ray diffraction "
@any reuse of this code should be authorized by the first owner, code author
"""
# libraries to import
importpandasaspd
importnumpyasnp
importseabornassns
importmatplotlib.pyplotasplt
fromscipyimportsignal
# import pywt
importpywt
importos
deffilter(signal_window,sample_rate):
"""
Applies a low-pass filter to the input signal window.
Args:
signal_window (array-like): The input signal window to be filtered.
sample_rate (float): The sample rate of the input signal.
Returns:
array-like: The filtered signal window.
"""
lowpass=0.49*sample_rate# Cut-off frequency of the filter
lowpass_freq=lowpass/(sample_rate/2)# Normalize the frequency