Skip to contents

Compute general probability of failure in a given state over flood events

Usage

compute_failure(case)

Arguments

case

object of class Case (ensure that slot sector is consistently defined)

Value

matrix of probability of being in a given scenario (rows) for a given state (columns)

Author

Frédéric Grelot, frederic.grelot.1994_cran@m4x.org

Examples


case_event = import_case(
     system.file("extdata", "case", "simple_event.ods", package = "floodam.cba")
)
#> import Case from /tmp/Rtmp123gly/temp_libpath567ad1c5712ce/floodam.cba/extdata/case/simple_event.ods
#>  ... done
compute_failure(case_event)
#>          state
#> scenario       1            2
#>   failure 0.0282 5.866667e-06
#>   normal  0.1678 1.959941e-01