Esempio n. 1
0
def test_pitjb2():
    "online parser, one peak "
    v=np.zeros(21)
    v[1] =  10
    peaks,ends = parser.pitjb_online_parser(v, p=p)
    npt.assert_equal([1],peaks)
Esempio n. 2
0
def test_pitjb():
    "online parser"
    v=np.zeros(21)
    v[1:4] =  [5,13,5]
    peaks,ends = parser.pitjb_online_parser(v, p=p)
    npt.assert_equal([2],peaks)