pystra.distributions.distribution.Constant#

class Constant(name, val)[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).

  • val (float) – The fixed value.

Methods

getName

Return the constant name.

getValue

Return the constant value.

getName()[source]#

Return the constant name.

getValue()[source]#

Return the constant value.