Skip to content

Instantly share code, notes, and snippets.

@tdhopper
Created July 20, 2012 21:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tdhopper/3153243 to your computer and use it in GitHub Desktop.
Save tdhopper/3153243 to your computer and use it in GitHub Desktop.
Plot of average distance between two random points in the unit hyper cube at various dimensions
ListPlot[Table[
Mean[Table[
Norm[RandomReal[1, dim] - RandomReal[1, dim]], {x, 1000}]], {dim,
2, 20}]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment