Skip to contents

To calculate inflow concentration for specified pathogen

Usage

inflow_concentration(scenario, pathogenName, monteCarlo = 1000)

Arguments

scenario

list scenario created with create_scenario

pathogenName

character names of the pathogens to be simulated

monteCarlo

integer number of simulation iterations for Monte Carlo

Value

scenario_with_concentration

Examples

scenario_test <- create_scenario(system.file("input_1culture_2pop.xlsx", package = "ambre"))
result <- inflow_concentration(scenario = scenario_test,
 pathogenName = c("Campylobacter jejuni", "Norovirus"),
 monteCarlo = 2000)
#> Simulated pathogen: Campylobacter jejuni
#> Create 2000 random distribution(s): uniform (n: 60, min: 100.000000, max: 5000.000000)
#> Simulated pathogen: Norovirus
#> Create 2000 random distribution(s): uniform (n: 60, min: 0.000000, max: 1000000.000000)
#> Providing inflow events ... ok. (0.02 secs) 
#> Providing inflow paras ... ok. (0.00 secs) 
#> Simulated pathogen: Campylobacter jejuni
#> Create 2000 random distribution(s): uniform (n: 48, min: 100.000000, max: 5000.000000)
#> Simulated pathogen: Norovirus
#> Create 2000 random distribution(s): uniform (n: 48, min: 0.000000, max: 1000000.000000)
#> Providing inflow events ... ok. (0.01 secs) 
#> Providing inflow paras ... ok. (0.00 secs)