Skip to content

Normalizing of exposure rate #1274

Closed

Description

@xsaschako

Motivation / Current Behaviour

   // normalize contact exposure rate by number of people in age groups
        for (auto age_group = AgeGroup(0); age_group < AgeGroup(num_agegroups); age_group++) {
            for (auto& v : cell.m_cached_exposure_rate_contacts.slice(AgeGroup(age_group))) {
                auto number_persons_in_age_group =
                    std::count_if(cell.m_persons.begin(), cell.m_persons.end(), [age_group](observer_ptr<Person> p) {
                        return p->get_age() == age_group;
                    });
                if (number_persons_in_age_group > 0) {
                    v = v / number_persons_in_age_group;
                }
            }
        }

needs to be added

Enhancement description

We need to normalize the exposure rate

Additional context

No response

Checklist

  • Attached labels, especially loc:: or model:: labels.
  • Linked to project

Activity

  1. added
    class::featureA feature to be implemented for some part of the software
    prio::moderateThe priority of this task is moderate.
    loc::backendThis issue concerns the C++ backend implementation.
    model::abmThis issue concerns any kind of agent-based model.
    on May 13, 2025
  2. changed the title [-]Normalizing of exposure rate is not on main[/-] [+]Normalizing of exposure rate[/+] on May 13, 2025
  3. self-assigned this
    on May 16, 2025
  4. moved this from Product Backlog 📕 to Development 🧑‍💻👩‍💻 in MEmilio: Agent-Based-Model Developmenton May 19, 2025
  5. linked a pull request that will close this issue1274 Normalizing of exposure rate #1283on May 19, 2025
  6. linked a pull request that will close this issue1274 normalizing of exposure rate #1322on Jul 22, 2025
  7. moved this from Development 🧑‍💻👩‍💻 to Review 🕵️‍♂️ in MEmilio: Agent-Based-Model Developmenton Oct 13, 2025
  8. moved this from Review 🕵️‍♂️ to Done (Sprint) 🎉 in MEmilio: Agent-Based-Model Developmenton Oct 28, 2025
  9. moved this from Done (Sprint) 🎉 to Done (Total) 💯 in MEmilio: Agent-Based-Model Developmenton Nov 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

class::featureA feature to be implemented for some part of the softwareclass::improvementCleanup that doesn't affect functionalityloc::backendThis issue concerns the C++ backend implementation.model::abmThis issue concerns any kind of agent-based model.prio::moderateThe priority of this task is moderate.

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions