pystra.distributions.distribution.Constant#

Use it: User guide · Worked example · Theory

class Constant(name, value)[source]#

Bases: object

A deterministic (non-random) variable in the limit-state function.

Constants are included in the stochastic model but are not treated as random variables — they carry a fixed value through every evaluation of the limit-state function.

Parameters:
  • name (str) – Name of the constant (must match a keyword argument of the limit state function).

  • value (float) – The fixed value.

Methods

get_name

Return the constant name.

get_name()[source]#

Return the constant name.

Return type:

str

property value: float#

The fixed value.