Update Classical PSHA-based Calculator algorithm

Bug #1165076 reported by matley
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenQuake Risk Library
Fix Released
Critical
matley

Bug Description

Currently, the classical psha-based calculator assumes that a vulnerability function is strictly increasing.

However, the user should be able also to submit non-decreasing vulnerability function, but still be able to use the calculator.

In such case, as the vulnerability function is defined point-wise we just take into account the first intensity measure level and the first covariance coefficient given in input.

E.g.

Data in input:
imls = 0, 0.1, 0.2, 0.3
mean loss ratios = 0, 0.1, 0.1, 0.2
covs = 0, 0, 0.001, 0.002

Data considered:
imls = 0, 0.1, 0.3
mean loss ratios = 0, 0.1, 0.2
covs = 0, 0, 0.002

Revision history for this message
matley (matley) wrote :
Revision history for this message
Lars Butler (lars-butler) wrote :

Related bug (changes required in oq-engine): https://bugs.launchpad.net/oq-engine/+bug/1166252

matley (matley)
Changed in oq-risklib:
milestone: none → 0.1
Changed in oq-risklib:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.