Basic Examples (2)
Define random points within a ball and visualize them:
Compute the RDF for the points:
Plot it:
Detect the points in a crystal diffraction image:
Compute the radial distribution function:
Plot the radial distribution function:
Scope (2)
Detect the points in a crystal diffraction image:
Generate pseudo 1-dimensional data from the image by extracting a narrow slice:
Define a 1-dimensional cuboid region:
Compute the radial distribution function:
Use a circular region to generate the radial distribution function for sunflower seeds:
Use a mask to remove the petals:
Detect the points representing the seeds:
Define the region (essentially the mask):
Compute the radial distribution function:
The integral of the first peak gives the approximate number of nearest nearest neighbors for a seed:
Applications (8)
Here is a ball of 1118 water molecules approximately 40 Å in diameter:
Extract the coordinates of the oxygen atoms:
Compute the region by first finding the convex hull of the oxygen atoms:
Then find its centroid, find the distance of the hull point furthest from the centroid, and pad for the approximate diameter of a water molecule of 1.93 Å:
Compute the radial distribution function:
Plot it:
The approximate number of nearest oxygen atoms (water molecules) is:
The average distance is:
Neat Examples (2)
Interactive explorer:
Generate a large patch of the Hat tiling:
Compute the mean of the coordinates of each polygon, and then group by color:
Select the points within the inscribed circle of the hexagonal patch:
Compute the radial distribution function for each group of points and plot it along with the points: