packing_defect.core.stats
Statistics utilities for packing_defect.
Functions
|
Return dict mapping frame_name to (mean, stdev) of all defects in that frame. |
|
Return a list of clusters, each as a set of (i, j) tuples. |
|
Return cluster sizes from a set of positions. |
|
Count number of clusters ≥ cutoff in each frame GRO file. |
|
Returns dict mapping frame_name to Counter of defect sizes. |
|
Compute mean and stdev for each defect size across frames. |
|
Return global (mean, stdev) across all frames and sizes. |
|
|
|
Open a GRO file and return a set of integer (i, j) grid positions. |
|
Return summary statistics (mean, median, stdev) of defect counts. |
- packing_defect.core.stats.average_std_per_frame(distros)[source]
Return dict mapping frame_name to (mean, stdev) of all defects in that frame.
- packing_defect.core.stats.cluster_positions(positions)[source]
Return a list of clusters, each as a set of (i, j) tuples.
- packing_defect.core.stats.cluster_sizes(positions)[source]
Return cluster sizes from a set of positions.
- packing_defect.core.stats.count_defect_types(gro_dir, cutoff)[source]
Count number of clusters ≥ cutoff in each frame GRO file. Returns list of (frame_name, count).
- packing_defect.core.stats.defect_distribution(gro_dir)[source]
Returns dict mapping frame_name to Counter of defect sizes.
- packing_defect.core.stats.defect_distro_stats(distros)[source]
Compute mean and stdev for each defect size across frames.
- packing_defect.core.stats.global_avg_std_defect_size(distros)[source]
Return global (mean, stdev) across all frames and sizes.