/// <summary> /// Calculates statistics for the algorithm as a whole. /// </summary> private void CalculateSummaryStatistics(Core core, EClustererStatistics statistics, Cluster[] realClusters) { if (statistics.HasFlag(EClustererStatistics.AlgorithmAverages)) { AddAveragedStatistics(core, this.ClustererStatistics, Assignments); } if (statistics.HasFlag(EClustererStatistics.BayesianInformationCriterion)) { this.ClustererStatistics[STAT_CLUSTERER_BIC] = ClustererStatisticsHelper.CalculateBic(realClusters, Assignments); } }