API Reference
Differences
module coreforecast.differences
function num_diffs
Find the optimal number of differences
Args:
x
(np.ndarray): Array with the time series.max_d
(int, optional): Maximum number of differences to consider. Defaults to 1.
Returns:
int
: Optimal number of differences.
function num_seas_diffs
Find the optimal number of seasonal differences
Args:
x
(np.ndarray): Array with the time series.season_length
(int): Length of the seasonal pattern.max_d
(int, optional): Maximum number of differences to consider. Defaults to 1.
Returns:
int
: Optimal number of seasonal differences.
function diff
Subtract previous values of the series
Args:
x
(np.ndarray): Array with the time series.d
(int): Lag to subtract
Returns:
np.ndarray
: Differenced time series.
This file was automatically generated via lazydocs.