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#

nparam

Methods#

__init__

get_nsplit

Determine in how many time series the contribution can be split.

get_settings

Method to obtain the settings of the stresses.

get_stress

Returns the stress(es) of the time series object as a pandas DataFrame.

set_init_parameters

Set the initial parameters for the stress model.

simulate

Simulate the trend.

to_dict

Method to export a dictionary to reconstruct the stressmodel.

update_stress

Method to update the settings of the all stresses in the stress model.