Changeset 14678 for branches/PerformanceComparison/HeuristicLab.Analysis.FitnessLandscape/3.3/Analysis/InformationAnalysis.cs
- Timestamp:
- 02/17/17 12:51:44 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PerformanceComparison/HeuristicLab.Analysis.FitnessLandscape/3.3/Analysis/InformationAnalysis.cs
r13583 r14678 212 212 private string asString; 213 213 public override string ToString() { 214 return asString ?? (asString = string.Join("", slopes.Select(s => (s == Slope.Down ? " v" : (s == Slope.Up ? "^" : "-")))));214 return asString ?? (asString = string.Join("", slopes.Select(s => (s == Slope.Down ? "\\" : (s == Slope.Up ? "/" : "-"))))); 215 215 } 216 216 } 217 217 218 218 private static IEnumerable<Slope> Slopes(double eps, IEnumerable<double> differences) { 219 return differences.Select(d => (d > eps ? Slope.Up : (d < -eps ? Slope.Down : 0)));219 return differences.Select(d => (d > eps ? Slope.Up : (d < -eps ? Slope.Down : Slope.Flat))); 220 220 } 221 221
Note: See TracChangeset
for help on using the changeset viewer.