add data
21
data/Code.txt
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
import numpy as np
|
||||||
|
import matplotlib.pyplot as plt
|
||||||
|
from scipy.signal import find_peaks
|
||||||
|
|
||||||
|
fname = 'Enter file name.txt'
|
||||||
|
slices_SB_2 = np.loadtxt(fname)
|
||||||
|
|
||||||
|
def find_peaks_SB(sig, h_min):
|
||||||
|
sig_et_0 = np.concatenate((np.zeros(1), sig, np.zeros(1)))
|
||||||
|
pics = find_peaks(sig_et_0, height=h_min, width=10)[0] - 1
|
||||||
|
return pics
|
||||||
|
|
||||||
|
def peak_map(slices_SB, h_min):
|
||||||
|
plt.figure()
|
||||||
|
for i in range(len(slices_SB)):
|
||||||
|
pics = find_peaks_SB(slices_SB[i], h_min)
|
||||||
|
for j in range(len(pics)):
|
||||||
|
plt.plot(pics[j], i, '.k')
|
||||||
|
|
||||||
|
h_min = 0.6
|
||||||
|
peak_map(slices_SB_2, h_min)
|
BIN
data/SB_0.5_0.5_2.0_0.0_pc_1.0_pd_1.0.png
Normal file
After Width: | Height: | Size: 63 KiB |
BIN
data/SB_1.0_1.0_0.75_0.0_pc_1.0_pd_1.0.png
Normal file
After Width: | Height: | Size: 66 KiB |
BIN
data/SB_1.0_1.0_0.75_0.2_pc_1.0_pd_1.0.png
Normal file
After Width: | Height: | Size: 64 KiB |
BIN
data/SB_1.0_1.0_0.75_0.4_pc_1.0_pd_1.0.png
Normal file
After Width: | Height: | Size: 63 KiB |
BIN
data/SB_1.0_1.0_0.75_0.8_pc_1.0_pd_1.0.png
Normal file
After Width: | Height: | Size: 60 KiB |
BIN
data/SB_1.3_1.3_0.4_0.2_pc_0.0_pd_1.0.png
Normal file
After Width: | Height: | Size: 61 KiB |
BIN
data/SB_points_0.5_0.5_2.0_0.0_pc_1.0_pd_1.0.png
Normal file
After Width: | Height: | Size: 8.8 KiB |
BIN
data/SB_points_1.0_1.0_0.75_0.0_pc_1.0_pd_1.0.png
Normal file
After Width: | Height: | Size: 7.9 KiB |
BIN
data/SB_points_1.0_1.0_0.75_0.2_pc_1.0_pd_1.0.png
Normal file
After Width: | Height: | Size: 7.7 KiB |
BIN
data/SB_points_1.0_1.0_0.75_0.4_pc_1.0_pd_1.0.png
Normal file
After Width: | Height: | Size: 9.1 KiB |
BIN
data/SB_points_1.0_1.0_0.75_0.8_pc_1.0_pd_1.0.png
Normal file
After Width: | Height: | Size: 7.5 KiB |
BIN
data/SB_points_1.3_1.3_0.4_0.2_pc_0.0_pd_1.0.png
Normal file
After Width: | Height: | Size: 7.7 KiB |