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

simple confusion #39

Open
batstarrd opened this issue Aug 10, 2018 · 2 comments
Open

simple confusion #39

batstarrd opened this issue Aug 10, 2018 · 2 comments

Comments

@batstarrd
Copy link

How is the percentage of segregation calculated (y-axis)?

@erinhopper
Copy link

I'm a bit late, but:
First, he calculates the "sameness" of each shape, which is the number of like neighbors over the number of total neighbors. This is a decimal between 0 and 1. Then he averages the sameness of all the shapes, subtracts 1/2, and divides by 2.
The actual function is called writeStats(), and can be found in polygons/play/automatic/automatic.js.

@batstarrd
Copy link
Author

batstarrd commented Mar 29, 2020 via email

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

No branches or pull requests

2 participants