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 to impossible to estimate from the data.

Attributes

nparam

Methods

__init__

dump_stress

Method to dump all stresses in the stresses list.

get_nsplit

Determine in how many timeseries the contribution can be split.

get_stress

Returns the stress or stresses 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 the StressModel object.

update_stress

Method to update the settings of the individual TimeSeries.