11function singleCondition(pathname , files , algorithm_range , E_range , ...
22 minPts_range , Pixel2nm , base_name , A_ROI , ...
3- doHopkins , doSigmaActual , Alpha )
3+ doHopkins , doSigmaActual , Alpha , SC )
44% ---------- Statistics for a single condition
55% Perform cluster analysis for comparison of experimental conditions. This is
66% useful for performing parameter studies, especially over a range of E's
@@ -23,7 +23,8 @@ function singleCondition(pathname, files, algorithm_range, E_range, ...
2323% avoid crashes due to lack of memory
2424% Alpha [DEFAULT = 2] ratio of local density / overall density
2525% for Voronoi clustering
26- %
26+ % SC StatisticsClustering object containing certain
27+ % parameters such as HopTestPts and HopTests
2728%
2829% OUTPUTS:
2930% A variety of plots are produced and are placed in a subdirectory of
@@ -52,8 +53,10 @@ function singleCondition(pathname, files, algorithm_range, E_range, ...
5253 end
5354
5455 c = smi_cluster .Clustering();
55- SC = smi_cluster .StatisticsClustering();
5656 PC = smi_cluster .PairCorrelation();
57+ if ~exist(' SC' , ' var' )
58+ SC = smi_cluster .StatisticsClustering();
59+ end
5760
5861 base_name_save = base_name ;
5962 if ~startsWith(base_name , ' ALL' )
0 commit comments