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)
multiply exterior stage-damage function (exterior stage, damage) by the fragility function (exterior stage, prob of failure)
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)
This is a logical bug.