WeeklyFourier.sample_curve#
- WeeklyFourier.sample_curve(parameters, use_dates=False, start_date=None)#
Create full period of the Fourier seasonality.
- Parameters:
- parameters
az.InferenceData
|xr.Dataset
Inference data or dataset containing the Fourier parameters. Can be posterior or prior.
- use_datesbool, optional
If True, use datetime coordinates for the x-axis. Defaults to False.
- start_date
datetime.datetime
, optional Starting date for the Fourier curve. If not provided and use_dates is True, it will be derived from the current year or month. Defaults to None.
- parameters
- Returns:
xr.DataArray
Full period of the Fourier seasonality.