- Timestamp:
- 12/21/11 17:01:58 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Analyzers/SymbolicExpressionTreeLengthAnalyzer.cs
r7172 r7223 29 29 using HeuristicLab.Parameters; 30 30 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 31 using System; 31 32 32 33 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding { … … 201 202 treeLengthsTable.VisualProperties.YAxisMaximumAuto = false; 202 203 treeLengthsTable.VisualProperties.YAxisMinimumFixedValue = 0.0; 203 int maxFreq = solutions.GroupBy(s => s.Length).Max(g => g.Count());204 int maxFreq = (int)Math.Round(solutions.GroupBy(s => s.Length).Max(g => g.Count()) / treeLengthsTableRow.VisualProperties.ScaleFactor); 204 205 if (maxFreq % 5 != 0) 205 206 maxFreq += (5 - maxFreq % 5);
Note: See TracChangeset
for help on using the changeset viewer.