run_driver_process_sim | R Documentation |
The user specifies the rate at which drivers are introduced and the distribution the selective coefficients are drawn from.
Note that unlike in run_selection_sim
the drivers are allowed to stochastically die out.
The drivers at the specified rate with the gap between successive introductions exponentially distributed.
run_driver_process_sim(
initial_division_rate = 0.1,
final_division_rate = 1/365,
target_pop_size = 1e+05,
drivers_per_year = 0.1,
nyears = 40,
fitnessGen = function() { 0 },
bForceReseed = FALSE,
offset = 0
)
initial_division_rate |
|
final_division_rate |
|
target_pop_size |
|
drivers_per_year |
|
nyears |
|
fitnessGen |
|
bForceReseed |
|
offset |
|
simpop object.
fitnessGen=function(){
trials=rexp(100,rate=30)
idx=which(trials>0.05)
if(length(idx)==0){
fitnessGen()
}else{
trials[idx[1]]
}
}
dps=run_driver_process_sim(0.1,1/(2*190),target_pop_size = 1e5,nyears = 30,fitness=fitnessGen,drivers_per_year = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.