示例#1
0
def test_7():
    x = make_surrogate_data()
    x = np.reshape(x,(x.shape[0],x.shape[1],1))
    thx = threshold_z_array(x, correction='fdr', pval=0.05, smin=0, nn=18,
                            method='emp')
    print np.sum(thx>0)
    assert np.sum(thx>0)==84
示例#2
0
def test_5():
    x = make_surrogate_data()
    x = np.reshape(x,(x.shape[0],x.shape[1],1))
    thx = threshold_z_array(x, correction='bon', pval=0.05, smin=0, nn=18)
    print np.sum(thx>0)
    assert np.sum(thx>0)==4