pastas.stressmodels.LinearTrend#
- class pastas.stressmodels.LinearTrend(start: pandas.Timestamp | str, end: pandas.Timestamp | str, name: str = 'trend')#
Stressmodel that simulates a linear trend.
- Parameters:
start (str) – String with a date to start the trend (e.g., “2018-01-01”), will be transformed to an ordinal number internally.
end (str) – String with a date to end the trend (e.g., “2018-01-01”), will be transformed to an ordinal number internally.
name (str, optional) – String with the name of the stress model.
Notes
While possible, it is not recommended to vary the parameters for the start and end time of the linear trend. These parameters are usually hard or even impossible to estimate from the data.
Methods#
|
Set the initial parameters for the stress model. |
|
Simulate the trend. |
|
Method to export a dictionary to reconstruct the stressmodel. |