Skip to content

Normalizing of exposure rate #1274

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 tasks done
xsaschako opened this issue May 13, 2025 · 0 comments · May be fixed by #1283
Open
2 tasks done

Normalizing of exposure rate #1274

xsaschako opened this issue May 13, 2025 · 0 comments · May be fixed by #1283
Assignees
Labels
class::feature A feature to be implemented for some part of the software class::improvement Cleanup that doesn't affect functionality loc::backend This issue concerns the C++ backend implementation. model::abm This issue concerns any kind of agent-based model. prio::moderate The priority of this task is moderate.

Comments

@xsaschako
Copy link
Member

xsaschako commented May 13, 2025

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
@xsaschako xsaschako added class::improvement Cleanup that doesn't affect functionality class::feature A feature to be implemented for some part of the software prio::moderate The priority of this task is moderate. loc::backend This issue concerns the C++ backend implementation. model::abm This issue concerns any kind of agent-based model. labels May 13, 2025
@xsaschako xsaschako changed the title Normalizing of exposure rate is not on main Normalizing of exposure rate May 13, 2025
@xsaschako xsaschako self-assigned this May 16, 2025
@xsaschako xsaschako moved this from Product Backlog 📕 to Development 🧑‍💻👩‍💻 in MEmilio: Agent-Based-Model Development May 19, 2025
@xsaschako xsaschako linked a pull request May 19, 2025 that will close this issue
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
class::feature A feature to be implemented for some part of the software class::improvement Cleanup that doesn't affect functionality loc::backend This issue concerns the C++ backend implementation. model::abm This issue concerns any kind of agent-based model. prio::moderate The priority of this task is moderate.
Projects
Status: Development 🧑‍💻👩‍💻
Development

Successfully merging a pull request may close this issue.

1 participant