Changeset 9198
- Timestamp:
- 01/31/13 14:39:34 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers.Views/3.3/ParameterInfluenceView.cs
r9197 r9198 140 140 } 141 141 142 private List<string> GetColumnNames( string parameterToExclude) {142 private List<string> GetColumnNames() { 143 143 string resultName = (string)resultComboBox.SelectedItem; 144 144 var runs = Content.Where(x => x.Results.ContainsKey(resultName) && x.Visible); … … 147 147 select p.Key).Distinct(); 148 148 149 parameters = parameters.Where(x => x != "Seed" && x != "Algorithm Name" && x != parameterToExclude);149 parameters = parameters.Where(x => x != "Seed" && x != "Algorithm Name"); 150 150 151 151 List<string> ret = new List<string>(); … … 226 226 string parameterName = (string)parameterComboBox.SelectedItem; 227 227 228 var columnNames = GetColumnNames(parameterName).ToArray(); 229 var rowNames = GetRowNames().ToArray(); 228 var columnNames = GetColumnNames().ToArray(); 229 230 var tmpRowNames = GetRowNames(); 231 tmpRowNames.Add("Overall"); 232 var rowNames = tmpRowNames.ToArray(); 230 233 231 234 var runs = Content.Where(x => x.Results.ContainsKey(resultName) && x.Visible); 232 235 233 StringMatrix dt = new StringMatrix(CalculateParameterVariations() , columnNames.Count());236 StringMatrix dt = new StringMatrix(CalculateParameterVariations() + 1, columnNames.Count()); 234 237 dt.RowNames = rowNames; 235 238 dt.ColumnNames = columnNames; … … 240 243 foreach (var columnName in columnNames) { 241 244 IEnumerable<IRun> curRuns = null; 242 curRuns = runs.Where(x => x.Parameters.ContainsKey(columnName) && ContainsParameterValue(x, parameterName, rowName)); 245 if (i + 1 == rowNames.Count()) { 246 //calculate Overall 247 curRuns = runs.Where(x => x.Parameters.ContainsKey(columnName)); 248 } else { 249 curRuns = runs.Where(x => x.Parameters.ContainsKey(columnName) && ContainsParameterValue(x, parameterName, rowName)); 250 } 243 251 244 252 var parameterVals = GetParameterVariatons(curRuns, columnName);
Note: See TracChangeset
for help on using the changeset viewer.