Risk modelling functions

is_exposed

Arguments: [exposure: Anything, hazard: Nullable[Anything], resource: Nullable[Anything]]

Returns: Integer

Simple function to check if an element-at-risk is exposed to the hazard. Returns 1 if the hazard argument is present (i.e. not null) and 0 if not. Useful as a placeholder function in risk modelling as it accepts any types for exposure, hazard and optional resource.