FragilityCurve#
module wntr.scenario.fragility_curve
- class FragilityCurve[source]#
Bases:
object
Fragility Curve class.
- cdf_probability(x)[source]#
Return the CDF probability for each state, based on the value of x
- Parameters:
x (pandas.Series) – Control variable for each element
- Returns:
Pr – Probability of exceeding a damage state
- Return type:
- sample_damage_state(Pr, seed=None)[source]#
Sample the damage state using a uniform random variable
- Parameters:
Pr (pandas.DataFrame) – Probability of exceeding a damage state
seed (int or None) – Random seed
- Returns:
damage_state – The damage state of each element
- Return type: