laser.measles.mixing.radiation
laser.measles.mixing.radiation
laser.measles.mixing.radiation.RadiationMixing(scenario=None, params=None)
Bases: BaseMixing
Radiation migration model for spatial mixing.
Outbound migration from origin i to destination j is enhanced by the destination population and absorbed by the density of nearer destinations (intervening opportunities):
where \(s_{ij} = \sum_{k \in \Omega(i,j)} p_k\) is the total population of patches closer to i than j.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
scenario
|
DataFrame | None
|
Patch data. |
None
|
params
|
RadiationParams | None
|
Model parameters. Uses
|
None
|
Example:
1 2 3 4 5 6 7 8 9 | |
laser.measles.mixing.radiation.RadiationMixing.get_migration_matrix()
Compute the radiation-based migration matrix.
Returns:
| Type | Description |
|---|---|
ndarray
|
Migration matrix of shape |
laser.measles.mixing.radiation.RadiationParams
Bases: BaseModel
Parameters for the radiation migration model.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
include_home
|
bool
|
Whether to include home in the migration matrix |
required |
k
|
float
|
Scale parameter (avg trip probability) |
required |
Example:
1 2 3 4 5 | |