set_initial_susceptibility_randomly#

set_initial_susceptibility_randomly(model, susc_frac=1.0)[source]#

Set the population susceptibility level at the start of the simulation. This function randomly selects individuals from the population and changes their susceptibility to zero, according to the parameter susc_frac.

Parameters:
  • model – The simulation model containing the population and parameters.

  • susc_frac (float) – The fraction of individuals to keep susceptible.

Return type:

None

Returns:

None