[1]:
# Import to be able to import python package from src
import sys
sys.path.insert(0, '../src')
[2]:
import pandas as pd
import numpy as np
import ontime as on

Generators#

Generators allow you to create a type of TimeSeries that is generated automatically. A generated TimeSeries generally has some specific characteristics, like being constant or random.

Constant time series#

[8]:
on.generators.constant().generate(1, pd.Timestamp('2022-01-01'), pd.Timestamp('2022-12-31')).plot()
[8]:

Gaussian Noise TimeSeries#

[7]:
on.generators.gaussian().generate(start=pd.Timestamp('2022-01-01'), end=pd.Timestamp('2022-12-31')).plot()
[7]:

Random Walk Time Series#

[6]:
on.generators.random_walk().generate(start=pd.Timestamp('2022-01-01'), end=pd.Timestamp('2022-12-31')).plot()
[6]: