Skip to contents

Multiplies the cohort-age column of fire_damage_table by DamageAgeMultiplier when the calibrated vector carries it, and leaves the table alone when it does not. This is the production-side counterpart of the same scaling patch_fire_config() applies to a calibration trial, so a calibrated table reaches the simulations it was fitted for.

Usage

apply_calibrated_damage_age(fire_damage_table, calibrated_fire_params)

Arguments

fire_damage_table

data.frame whose FIRST column is the cohort age as a percentage of longevity, as defaultFireDamageTable() returns.

calibrated_fire_params

Named numeric vector. Used only if it holds DamageAgeMultiplier.

Value

A copy of fire_damage_table with the age column scaled where calibrated.

Details

The paired severity-minus-tolerance column is never touched: the user guide (2.16.3) requires an integer there, so it offers only a few reachable outcomes and is not a fittable quantity, whereas the age column is a percentage of longevity (2.16.2) and scales continuously.