LinearTrend#
- class LinearTrend(start, end, name='trend')[source]#
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.
Attributes#
|
Methods#
Determine in how many time series the contribution can be split. |
|
Get parameters and return as array. |
|
Method to obtain the settings of the stresses. |
|
Returns the stress(es) of the time series object as a pandas DataFrame. |
|
Set the initial parameters for the stress model. |
|
Simulate the trend. |
|
Method to export a dictionary to reconstruct the stressmodel. |
|
Method to update the settings of the all stresses in the stress model. |