Changeset 6981
- Timestamp:
- 11/10/11 09:27:28 (13 years ago)
- Location:
- trunk/sources
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Common/3.3/HeuristicLab.Common-3.3.csproj
r6866 r6981 124 124 <Compile Include="Content\IStorableContent.cs" /> 125 125 <Compile Include="Constants.cs" /> 126 <Compile Include="NaturalStringComparer.cs" /> 126 127 <Compile Include="ObjectExtensions.cs" /> 127 128 <Compile Include="DeepCloneable.cs" /> -
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.