wntr.scenario.fragility_curve module¶
The wntr.scenario.fragility_curve module includes methods to define damage states and priority and return the probability of damage based on a control variable.
- class wntr.scenario.fragility_curve.FragilityCurve[source]¶
Bases:
object
Fragility Curve class.
- add_state(name, priority=0, distribution={})[source]¶
Add a damage state distribution
- Parameters
name (string) – Name of the damage state
priority (int) – Damage state priority
distribution (dict, key = string, value = scipy.stats statistical function) – ‘Default’ can be used to specificy all location
- states()[source]¶
A generator to iterate over all states, in order of priority
- Returns
state_name, state