- Timestamp:
- 11/10/11 09:27:28 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Analyzers/SymbolicDataAnalysisVariableFrequencyAnalyzer.cs
r6811 r6981 23 23 using System.Collections.Generic; 24 24 using System.Linq; 25 using HeuristicLab.Analysis; 25 26 using HeuristicLab.Common; 26 27 using HeuristicLab.Core; 27 28 using HeuristicLab.Data; 28 29 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 29 using HeuristicLab.Operators;30 30 using HeuristicLab.Optimization; 31 31 using HeuristicLab.Parameters; 32 32 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 33 using HeuristicLab.Analysis;34 33 35 34 namespace HeuristicLab.Problems.DataAnalysis.Symbolic { … … 139 138 double totalNumberOfSymbols = variableFrequencies.Values.Sum(); 140 139 141 foreach (var pair in variableFrequencies )140 foreach (var pair in variableFrequencies.OrderBy(p => p.Key, new NaturalStringComparer())) 142 141 yield return new KeyValuePair<string, double>(pair.Key, pair.Value / totalNumberOfSymbols); 143 142 }
Note: See TracChangeset
for help on using the changeset viewer.