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

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_samoens = import.Case(
     system.file("extdata", "case", "test_arve_samoens.ods", package = "floodam.cba")
)
#> import Case from /tmp/RtmpedPQOf/temp_libpath47f60379534/floodam.cba/extdata/case/test_arve_samoens.ods
#>  ... done
compute.failure(case_samoens)
#>          state
#> scenario            1         2
#>   failure 0.007916667 0.0015225
#>   normal  0.102194444 0.1085886