InaSAFE Disaster risk tool by Australian Aid - PAGER Earthquake Impact Function on Population.
Contact : ole.moller.nielsen@gmail.com
Note
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
Bases: safe.impact_functions.earthquake.itb_earthquake_fatality_model.impact_function.ITBFatalityFunction
USGS Pager fatality estimation model.
Fatality rate(MMI) = cum. standard normal dist(1/BETA * ln(MMI/THETA)).
Reference: Jaiswal, K. S., Wald, D. J., and Hearne, M. (2009a). Estimating casualties for large worldwide earthquakes using an empirical approach. U.S. Geological Survey Open-File Report 2009-1136.
Cumulative distribution function of standard normal distribution.
Logic based on http://en.wikipedia.org/wiki/Normal_distribution
Parameters: | x (float) – random variable x |
---|---|
Returns: | phi of (x) |
Return type: | float |
Pager method compute probaility of fatality in each magnitude bin.
(0,1), (1,10), (10,10^2), (10^2,10^3), (10^3, 10^4), (10^4, 10^5), (10^5, 10^6+)
Parameters: | total_fatalities (int, float) – List of total fatalities in each MMI class. |
---|---|
Returns: | Probability of fatality magnitude bin from lognorm.cdf(bin, shape=Zeta, scale=total_fatalities) |
Return type: | list(float) |
Pager method to compute fatality rate.
Parameters: | mmi (float) – MMI |
---|---|
Returns: | Fatality rate calculated as: lognorm.cdf(mmi, shape=Beta, scale=Theta) |
Return type: | float |
Round a list of numbers while maintaining the sum.
http://stackoverflow.com/questions/15769948/ round-a-python-list-of-numbers-and-maintain-the-sum
Parameters: |
|
---|---|
Returns: | A list of rounded numbers whose sum is equal to the sum of the list of input numbers. |
Return type: | list |