Пример #1
0
def test_time_series_upsampling(rrddata, twindow, shift, upsampled):
    ts = prediction.TimeSeries(rrddata)
    assert ts.bfill_upsample(twindow, shift) == upsampled
Пример #2
0
def test_time_series_downsampling(rrddata, twindow, cf, downsampled):
    ts = prediction.TimeSeries(rrddata)
    assert ts.downsample(twindow, cf) == downsampled