python 寻找离散序列极值点
https://blog.csdn.net/weijifen000/article/details/80070520
Matlab信号提取、频谱分析、滤波、阈值设定、寻找极值点
https://blog.csdn.net/han____shuai/article/details/50700882
https://bbs.csdn.net/topics/370190764
一些讨论
https://blog.csdn.net/baishuiniyaonulia/article/details/79049400
很好的办法,通过scipy.signal.find_peaks_cwt,去掉噪点,多种办法
https://blog.csdn.net/liyuanbhu/article/details/48732737
a
=
[x,x,x,x,x,x,x]
h
=
[]
l
=
[]
for
i
in
range
(
1
,
len
(a)
-
1
):
if
(a[i
-
1
] < a[i]
and
a[i
+
1
] < a[i]):
h.append(a[i])
elif
(a[i
-
1
] > a[i]
and
a[i
+
1
] > a[i]):
l.append(a[i])
if
(
len
(h)
=
=
0
):
h.append(
max
(a))
if
(
len
(l)
=
=
0
):
l.append(
min
(a[a.index(
max
(a)):]))
print
h
print
l