Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/arrays/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
python中的峰值增量_Python_Arrays_Numpy - Fatal编程技术网

python中的峰值增量

python中的峰值增量,python,arrays,numpy,Python,Arrays,Numpy,我有一个numpy阵列: A = [ 0.31 0.96 1.66 1.98 2.19 2.67 3.04 3.13 2.94 2.79 2.88 2.58 2.25 2.28 2.16 1.88 1.38 0.78 0.35] AL = np.asarray(A) AL = A.astype(float) 我成功地计算了标准偏差和香农熵,如下所示: std=np.std(AL, axis=0) print "STD: ",str(std) AL /= AL

我有一个numpy阵列:

A = [ 0.31  0.96  1.66  1.98  2.19  2.67  3.04  3.13  2.94  2.79  2.88  2.58 2.25  2.28  2.16  1.88  1.38  0.78  0.35]

AL = np.asarray(A)
AL = A.astype(float)
我成功地计算了标准偏差和香农熵,如下所示:

std=np.std(AL, axis=0)
print "STD: ",str(std)
AL /= AL.sum()
S=-np.sum(AL * (np.log2(AL)))
print "ShaEn: ", str(S)

有人知道峰值膨胀以及如何在python中计算它吗?

它将是数组中的最大值

Maxi=np.max(A, axis=0)
print "Max: ",str(Maxi)

你有“峰值膨胀”的定义或公式吗?我相信这个概念在这里有描述,但老实说,我无法理解它,我知道没有人知道它。研究中的“扩张”似乎意味着血管的物理扩张。也许“峰值扩张”只是这些数字中的最大值?你一定问错人了。这是一个编程网站,不是生物学网站。@DYZ你知道有哪个网站我可以问这类问题吗?谢谢你,伙计。