mixed multimodal random 2d
✓ Published0🌍 Public
PPatrick Wojda
Last edited Dec 5, 2016
Created on Nov 29, 2016
This example shows a 2D scatterplot of 10,000 points, where the x-coordinate is sampled from either a normal distribution centered at 75 or one centered at 25, while the y-coordinate comes from a normal distribution centered at 50. The result is a clear bimodal cluster pattern. Using d3.v3 and the d3-random API, it generates random normal values, then maps them to SVG coordinates via a linear scale. The code appends red circles with radius 1 to the SVG canvas, rendering the distribution as a dense point cloud.
AI-generated descriptionBuilt with blockbuilder.org
mit Licensed