sandbox.stats.multicomp.maxzero()

statsmodels.sandbox.stats.multicomp.maxzero

statsmodels.sandbox.stats.multicomp.maxzero(x) [source]

find all up zero crossings and return the index of the highest

Not used anymore

1
2
3
4
5
6
7
>>> np.random.seed(12345)
>>> x = np.random.randn(8)
>>> x
array([-0.204707660.47894334, -0.51943872, -0.5557303 1.96578057,
        1.393405830.092907880.28174615])
>>> maxzero(x)
(4, array([1, 4]))

no up-zero-crossing at end

1
2
3
4
5
6
7
>>> np.random.seed(0)
>>> x = np.random.randn(8)
>>> x
array([ 1.764052350.400157210.978737982.2408932 1.86755799,
       -0.977277880.95008842, -0.15135721])
>>> maxzero(x)
(None, array([6]))
doc_statsmodels
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.