Thank you for demonstrating this technique! Clarifying question from a relatively new JS user...What is happening in the code that causes the counts for females and males at the far right to not be equal to the raw data counts in the first data block below? I am sure I am missing something straightforward, but just want to make sure I understand what is occurring. Thanks!
Hey, Blake! Glad you find it useful. The numbers do not match because raw data numbers get normalized to [0..1] values. So the particles decide where to go probabilistically. Every time you run the simulation, the numbers will be different.
See how these transformations happen in `targetsAbsolute` → `targets` → `targetScale`.