Update Event Based algorithm

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

Bug Description

The new algorithm should compute loss curves in a different way. Here on, a sample code in Matlab:

maxValue = max(aggLosses)
Losses=linspace(0,maxValue,100);
excLosses=Losses;
for i=1:length(excLosses)
   excLosses(i)=sum(aggLosses>Losses(i));
end
rates=excLosses/TSES;
ProbExc=1-exp(-rates.*50);

where aggLosses is the result of applying the vulnerability function to a set of ground motion values, 100 is the loss curve resolution. The curves is composed by Losses over ProbExc

matley (matley)
Changed in oq-risklib:
milestone: none → 0.1
Revision history for this message
Michele Simionato (michele-simionato) wrote :
Changed in oq-risklib:
status: New → In Progress
matley (matley)
Changed in oq-risklib:
status: In Progress → Fix Committed
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.