gem/oq-risklib — pull request #21 by matley (2012-11-30 16:20:25+00:00)
Title: Event based exceeding times

Addresses https://bugs.launchpad.net/openquake/+bug/1084032

Notes:

the values of the poes depend only on the number of intensities (e.g. ground motion values), so in the context of an oq-engine risk calculation (where that number does not vary) they could be pre-computed one time and re-used for the computation of each loss (ratio) curve.

However, as the cost of calculating them might be negligible we have decided to delay the decision of factoring out the code responsible to compute the poes in a proper function, as a general refactoring of the library has been scheduled in the next week.