functions package#
Submodules#
functions.detrend module#
Detrend models.
- class functions.detrend.BSplinesDetrend(interval_length: int = 10, degree: int = 3)[source]#
Bases:
BaseDetrend
- class functions.detrend.BaseDetrend(method_name: str)[source]#
Bases:
object
Base class for all detrend models.
- class functions.detrend.ExponentialMADetrend(alpha: float = 0.05)[source]#
Bases:
BaseDetrend
- class functions.detrend.LinearMADetrend(window: int = 100)[source]#
Bases:
BaseDetrend
- class functions.detrend.LinearRegressionDetrend[source]#
Bases:
BaseDetrend
- class functions.detrend.PolynomialRegressionDetrend(order: int = 3, n_segments: int = 5)[source]#
Bases:
BaseDetrend
functions.detrend_fancy_plot module#
- functions.detrend_fancy_plot._fancy_plot(y_original: ndarray | DataFrame, y_fitted: ndarray, y_detrend: ndarray, fitted_parameters: dict, xticklabels: Index | None = None, method_name: str = '') None [source]#
Plot two graphs: the original data and its fitted trend curve; the detrended data
- Parameters:
xticklabels (pd.core.indexes.base.Index | None, optional) – the date index of the imported financial data. Defaults to None.