コード例 #1
0
def test_std():
    ten = TimeSeries([1, 2, 3, 4, 5], [600, 470, 170, 430, 300]) 
    print(ten.std())
    assert int(ten.std()) == 147
コード例 #2
0
def test_std():
    ts = TimeSeries([1, 2], [3, 4])
    assert ts.std() == sqrt(0.25)
コード例 #3
0
def test_std():
    ts = TimeSeries([1, 2, 3])
    assert ts.std() == np.std([1, 2, 3])
コード例 #4
0
def test_std():
    ten = TimeSeries([1, 2, 3, 4, 5], [600, 470, 170, 430, 300])
    print(ten.std())
    assert int(ten.std()) == 147