statsmodels.sandbox.stats.multicomp.maxzero¶
- statsmodels.sandbox.stats.multicomp.maxzero(x)[source]¶
找到所有上升零交叉并返回最高点的索引
不再使用
>>> np.random.seed(12345) >>> x = np.random.randn(8) >>> x array([-0.20470766, 0.47894334, -0.51943872, -0.5557303 , 1.96578057, 1.39340583, 0.09290788, 0.28174615]) >>> maxzero(x) (4, array([1, 4]))在结束时没有向上过零点
>>> np.random.seed(0) >>> x = np.random.randn(8) >>> x array([ 1.76405235, 0.40015721, 0.97873798, 2.2408932 , 1.86755799, -0.97727788, 0.95008842, -0.15135721]) >>> maxzero(x) (None, array([6]))
Last update:
Oct 16, 2024