djura.vulnerability_modeller¶
Seismic vulnerability and loss modelling.
- djura.vulnerability_modeller.fragility.mlefit(param1, param2, total_count, count, data)[source]¶
Maximum likelihood method Performs a lognormal cumulative distribution function fit to the data points based on maximum likelihood method
- Parameters:
param1 (
float) – Median of the function, parameter of a statistical model to be foundparam2 (
float) – Standard deviation of the function, parameter of a statistical model to be foundtotal_count (
int) – Number of data pointscount (
int) – Number of failuresdata (Union[List, np.ndarray]) – The function, data points
- Returns:
Negative Log likelihood to be minimized
- Return type:
- djura.vulnerability_modeller.fragility.fit_fragility(xs, counts, total_count, iml_range=None, beta=0.0)[source]¶
- class djura.vulnerability_modeller.backbone.Backbone(data, method='backbone', model='bilin')[source]¶
Bases:
object- property backbone¶
- class djura.vulnerability_modeller.eal.EAL(elr, mafe)[source]¶
Bases:
object- fit_loss_curve()[source]¶
Fitting of a refined loss curve that passes through the performance limit states
- Returns:
Coefficients of the analytical form Fitted ELRs Fitted MAFEs
- Return type:
Notes
The analytical form is defined as:
\[MAFE = \mathrm{coef}_0 * exp( -\mathrm{coef}_1 * log(ELR) - \mathrm{coef}_2 * log(ELR)^2)\]# noqa: E501, W605
- class djura.vulnerability_modeller.pfa_profile.PFAProfile(method, bldg_type, psd, period, heights)[source]¶
Bases:
object- omega = array([], dtype=float64)¶
- pfa_coefs = {'muho': {'rc-infill': {'2-4': [[0.645, -0.178, -0.148, -0.09, 0.136], [0.308, -0.46, 0.055, -0.168, 0.259]], '5-20': [[1.159, -0.027, -0.17, -0.048, 0.076], [0.708, -0.145, -0.206, -0.103, 0.087], [0.161, -0.463, -0.336, -0.291, 0.145], [0.259, -0.438, -0.256, -0.27, 0.196]]}, 'rc-mrf': {'2-4': [[0.23, -0.355, 0.213], [0.046, -0.77, 0.297]], '5-20': [[0.923, -0.029, -0.1], [0.636, -0.151, -0.154], [0.254, -0.34, -0.026], [0.135, -0.537, -0.025]]}}}¶
- djura.vulnerability_modeller.utilities.uncensored_regression(pars, x, y)[source]¶
Uncensored regression to estimate the expected EDP given IM and the respective uncertainty due to record-to-record variability
- djura.vulnerability_modeller.utilities.censored_regression(pars, x_unc, x_cens, y_unc, y_cens)[source]¶
Censored regression to estimate the expected EDP given IM and the respective uncertainty due to record-to-record variability
- Parameters:
x_unc (
ndarray) – For example, uncensored Intensity measure [im] values in m/sx_cens (
ndarray) – For example, censored Intensity measure [im] values in m/sy_unc (
ndarray) – For example, uncensored Engineering demand parameters (EDPs)y_cens (
float) – For example, censored Engineering demand parameters (EDPs)
- Returns:
loss value to minimize
- Return type: