Changeset 12674 for trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Analyzers/SymbolicDataAnalysisSingleObjectivePruningAnalyzer.cs
- Timestamp:
- 07/08/15 11:02:22 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Analyzers/SymbolicDataAnalysisSingleObjectivePruningAnalyzer.cs
r12361 r12674 206 206 var qualities = Quality.Select(x => x.Value).ToArray(); 207 207 var indices = Enumerable.Range(0, qualities.Length).ToArray(); 208 Array.Sort(qualities, indices); 208 indices.StableSort((a, b) => qualities[a].CompareTo(qualities[b])); 209 209 210 if (!Maximization.Value) Array.Reverse(indices); 210 211 … … 214 215 var empty = new EmptyOperator(); 215 216 216 for (int i = 0; i < subscopes.Count; ++i) {217 for (int i = 0; i < indices.Length; ++i) { 217 218 IOperator @operator; 218 219 if (range.Start <= i && i < range.End && random.NextDouble() <= PruningProbability)
Note: See TracChangeset
for help on using the changeset viewer.