Logo
  • Features
  • Installation instructions
  • Model data
  • Quick Start Guide
  • Tutorial
  • Input files and formats
  • Usage
  • Running on a cluster
  • Help and support
  • Contributing
  • Developer Support
  • Roadmap
  • Packaging releases
  • Developer’s guide
  • Snag list
  • Documentation
    • MetaWards.app
    • MetaWards
    • MetaWards.iterators
    • MetaWards.extractors
    • MetaWards.mixers
    • MetaWards.movers
    • MetaWards.analysis
    • MetaWards.utils
      • MetaWards.utils API Detail
        • Functions
        • Classes
    • MetaWards.themes
  • Changelog
  • Acknowledgements
MetaWards
  • »
  • Documentation »
  • MetaWards.utils »
  • MetaWards.utils API Detail »
  • metawards.utils.scale_link_susceptibles
Next Previous

metawards.utils.scale_link_susceptibles¶

metawards.utils.scale_link_susceptibles(links: Links, ratio: any)¶

Scale the number of susceptibles in the passed Links by the passed scale ratio. This can be a value, e.g. ratio = 2.0 will scale the total number of susceptibles by 2.0. This can also be lists of values, where ward[i] will be scaled by ratio[i]. They can also be dictionaries, e.g. ward[i] scaled by ratio[i]

Parameters:ratio (None, float, list or dict) – The amount by which to scale the total population of susceptibles - evenly scales the work and play populations
Returns:
Return type:None
Next Previous

Last updated on Jul 22, 2020.