Created
July 20, 2012 21:09
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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