Skip to contents

Compute indicator of efficiency for a case

Usage

compute_efficiency(
  case,
  reference = getOption("floodam.cba")[["reference"]],
  rate = getOption("floodam.cba")[["rate"]],
  type = "automatic"
)

Arguments

case

An object of class 'Case'.

reference

String, designing the reference project.

rate

String, designing which type of rate should be used.

type

String, does "simple" or "probabilistic" calendar shall be used.

Value

Matrix with synthetic indicators

Author

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

Examples


case_complete = import_case(system.file("extdata", "case", "complete.ods", package = "floodam.cba"))
#> import Case from /tmp/Rtmp123gly/temp_libpath567ad1c5712ce/floodam.cba/extdata/case/complete.ods
#>  ... done
compute_efficiency(case_complete)
#>         complete reinforcement
#> npv   909.314149   3061.286007
#> bcr     1.088509      1.571735
#> h_min  36.000000     13.000000
case = import_case(system.file("extdata", "case", "simple.ods", package = "floodam.cba"))
#> import Case from /tmp/Rtmp123gly/temp_libpath567ad1c5712ce/floodam.cba/extdata/case/simple.ods
#>  ... done
compute_efficiency(case)
#>           complete          dam          dyke
#> npv   31364.989895 1.627784e+05 -5.265859e+04
#> bcr       1.098454 2.127588e+00  7.199823e-01
#> h_min    41.000000 1.500000e+01           Inf