File:StratifiedPoints.gif
StratifiedPoints.gif (400 × 400 pixels, file size: 1.34 MB, MIME type: image/gif, looped, 100 frames, 2 min 0 s)
Note: Due to technical limitations, thumbnails of high resolution GIF images such as this one will not be animated.
![]() | This is a file from the Wikimedia Commons. Information from its description page there is shown below. Commons is a freely licensed media file repository. You can help. |
Summary
DescriptionStratifiedPoints.gif |
English: (*The stratification process redistributes the random elements into a \
relatively homogeneous group and then samples randomly. Every element \ in the original set is uniquely reassigned to one stratum.*) \ tinyColor[color_, point_] := {PointSize[Small], color, Point[point]} colorChoose[point_] := tinyColor[Blue, point] Clear[r, n]; r = 100; n = r^2; darts = RandomReal[{0, 1}, {n, 2}]; coloredDarts = ParallelMap[colorChoose, darts]; Clear[smoothedDarts, tempPoints] subGrouper = Table[i, {i, 0, r - 1}]; shiftyGuy = Flatten[Tuples[subGrouper, 2]]; tempPoints = Partition[(shiftyGuy + Flatten[darts])*(1/r), 2]; smoothedDarts = RandomSample[tempPoints, n]; Export["~/Desktop/stratifiedPoints.gif", Table[ListPlot[Part[smoothedDarts, 1 ;; max], AspectRatio -> 1, PlotStyle -> {PointSize[Small], Blue}, PlotRange -> {{0, 1}, {0, 1}}, PlotLabel -> TraditionalForm[max "Randomly Selected Stratified Points"], Frame -> True, ImageSize -> {400, 400}], {max, 100, Length[darts], Length[darts]/100}],"DisplayDurations" -> ConstantArray[1, 9]~Join~{3}] |
Date | |
Source | Own work |
Author | Caitlin Jo Ramsey |
Camera location | 38° 54′ 14.56″ N, 77° 02′ 53.31″ W ![]() | View this and other nearby images on: OpenStreetMap | ![]() |
---|
(*This mathematical image was created with Mathematica. The stratification process redistributes the random elements into a \ relatively homogeneous group and then samples randomly. Every element \ in the original set is uniquely reassigned to one stratum. Source code for this image is available below.*) \ tinyColor[color_, point_] := {PointSize[Small], color, Point[point]} colorChoose[point_] := tinyColor[Blue, point]
Clear[r, n]; r = 100; n = r^2; darts = RandomReal[{0, 1}, {n, 2}]; coloredDarts = ParallelMap[colorChoose, darts];
Clear[smoothedDarts, tempPoints] subGrouper = Table[i, {i, 0, r - 1}]; shiftyGuy = Flatten[Tuples[subGrouper, 2]]; tempPoints = Partition[(shiftyGuy + Flatten[darts])*(1/r), 2];
smoothedDarts = RandomSample[tempPoints, n];
Export["~/Desktop/stratifiedPoints.gif",
Table[ListPlot[Part[smoothedDarts, 1 ;; max], AspectRatio -> 1, PlotStyle -> {PointSize[Small], Blue}, PlotRange -> {{0, 1}, {0, 1}}, PlotLabel -> TraditionalForm[max "Randomly Selected Stratified Points"], Frame -> True, ImageSize -> {400, 400}], {max, 100, Length[darts], Length[darts]/100}], "DisplayDurations" -> ConstantArray[1, 9]~Join~{3}]
Licensing



- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

Captions
Items portrayed in this file
depicts
some value
38°54'14.562"N, 77°2'53.308"W
14 July 2013
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 19:10, 14 July 2013 | ![]() | 400 × 400 (1.34 MB) | wikimediacommons>CaitlinJo | User created page with UploadWizard |
File usage
The following page uses this file:
Metadata
This file contains additional information, probably added from the digital camera or scanner used to create or digitize it.
If the file has been modified from its original state, some details may not fully reflect the modified file.
GIF file comment | Created by Wolfram Mathematica 8.0 |
---|