Skip to content
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

Take group spread into account when grouping the seats #4

Open
Gouvernathor opened this issue Jun 23, 2024 · 0 comments
Open

Take group spread into account when grouping the seats #4

Gouvernathor opened this issue Jun 23, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Gouvernathor
Copy link
Owner

From slashme/parliamentdiagram#3.
Group seats such that:

  • the mean value, across all groups, of the maximal distance between two seats of each group, is minimized
  • the barycenter of the groups, when sorted by angle wrt the center of the half-annulus (the "well"), puts the groups in the right order

For reference, the current algorithm is to sort all the seats following the angle, and then slice that sequence following the group sizes.

@Gouvernathor Gouvernathor added the enhancement New feature or request label Jun 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant