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

Varying initial weights for points #119

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

ilyabo
Copy link

@ilyabo ilyabo commented Mar 26, 2019

Supercluster assumes that all the input points are of the same weight 1. There are cases though in which it is desirable to assign varying initial weights to them. E.g. in this case the points have masses calculated as the sums of the magnitudes of their incoming/outgoing flows. Larger locations (e.g. Sydney) should have more inertia so that they are not moved too far when clustered with smaller ones. The PR addresses this by adding support for the optional weight property in the input points.

@asheemmamoowala asheemmamoowala changed the base branch from master to main June 19, 2020 17:53
jonkan added a commit to jonkan/supercluster that referenced this pull request Aug 18, 2023
jonkan added a commit to jonkan/supercluster that referenced this pull request Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant