pastas.stressmodels.Constant#

class pastas.stressmodels.Constant(initial: float = 0.0, name: str = 'constant')#

A constant value that is added to the time series model.

Parameters:
  • initial (float, optional) – Initial estimate of the parameter value. For example, the minimum of the observed series.

  • name (str, optional) – Name of the stressmodel. Default is “constant”.

property stresses: tuple#

All the stress time series in the stressmodel as a tuple.

property nsplit: int#

Number of time series the contribution can be split in.

Methods#

set_init_parameters(→ None)

Set the initial parameters (back) to their default values.

simulate(→ float)

Simulate the stressmodel's contribution.

to_dict(→ dict)

Export the stressmodel to a dictionary.