Mean and quantile loss curves computation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenQuake Engine |
Fix Released
|
Critical
|
matley |
Bug Description
Currently, the mean/quantile loss curve computation fails when there is at least one degenerate individual loss curve (e.g. a loss curve where all the losses are set to 0).
Once that risklib supports the new event based algorithm ( https:/
Given a set of loss curves (for the same asset)
0) Let L(i) the losses of the i-th curve, P(i) the poes of the i-th curve, M(i) = max(L(i))
1) let i* be the index of the loss curve having the maximum M(i) and L'(i) a subarray of L(i) where each loss <= M(i*).
2) For each i compute P'(i) by interpolating each L'(i) on the reference losses L(i*). If some L(i) is out of bounds, set the corresponding P'(i) to 0.
3) Compute the mean/quantile curves (as done previously) by considering the curves with losses L'(i) and poes P'(i)
Changed in oq-engine: | |
status: | New → In Progress |
description: | updated |
Changed in oq-engine: | |
status: | In Progress → Fix Committed |
Changed in oq-engine: | |
status: | Fix Committed → Fix Released |
The condition "if zero does not belong to L(i*) add 0 with P(0) = 1" never holds as of https:/ /bugs.launchpad .net/oq- risklib/ +bug/1168446