HydrologicEngineeringCenter / fda-model

A simple computational library to support water resources.
MIT License
2 stars 0 forks source link

int/ext + fragility handled incorrectly #343

Closed rnugent3 closed 2 years ago

rnugent3 commented 2 years ago

This is a logical bug.

rnugent3 commented 2 years ago

I think this is the correct procedure:

  1. Combine exterior-interior function (exterior stage, interior stage) with interior stage-damage function (interior stage, damage) to get exterior stage-damage function (exterior stage, damage)
  2. multiply exterior stage-damage function (exterior stage, damage) by the fragility function (exterior stage, prob of failure)
  3. combine exterior stage-probability-weighted damage function (exterior stage, probability-weighted damage) with exterior stage-frequency (frequency, exterior stage) to get the damage frequency function (frequency, probability weighted damage)