Changeset 4968 for branches/DataAnalysis.Extensions/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Formatters
- Timestamp:
- 11/28/10 11:06:46 (14 years ago)
- Location:
- branches/DataAnalysis.Extensions/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Formatters
- Files:
-
- 1 added
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis.Extensions/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Formatters/SymbolicExpressionTreeGraphvizFormatter.cs
r4961 r4968 27 27 using HeuristicLab.Common; 28 28 29 namespace HeuristicLab. Problems.DataAnalysis.Symbolic.Formatters {30 [Item(" SymbolicExpressionTreeGraphvizFormatter", "Formatter for symbolic expression trees for import into GraphViz documents.")]29 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Formatters { 30 [Item("GraphViz String Formatter", "Formatter for symbolic expression trees for visualization with GraphViz.")] 31 31 public sealed class SymbolicExpressionTreeGraphvizFormatter : NamedItem, ISymbolicExpressionTreeStringFormatter { 32 32 public bool Indent { get; set; } 33 33 34 34 private readonly static Dictionary<string, string> symbolNameMap = new Dictionary<string, string>() { 35 {"Multiplication", "Mul"},36 {"Addition", "Add"},37 {"Division", "Div"},38 {"Subtraction", "Sub"},39 {"Average", "Avg"},40 41 {"Logarithm", "Log"},42 {"Exponential", "Exp"},43 44 {"Cosine", "Cos"},45 {"Sine", "Sin"},46 {"Tangent", "Tan"},47 48 {"GreaterThan", ">"},49 {"LessThan", "<"},50 {"IfThenElse", "If"},51 52 35 // match Koza style 53 36 {"ProgramRootSymbol", "Prog"}, … … 56 39 57 40 public SymbolicExpressionTreeGraphvizFormatter() 58 : base(" SymbolicExpressionTreeLatexFormatter", "Formatter for symbolic expression trees for import into LaTeX documents.") {41 : base("GraphViz String Formatter", "Formatter for symbolic expression trees for visualization with GraphViz.") { 59 42 Indent = true; 60 43 } -
branches/DataAnalysis.Extensions/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Formatters/SymbolicExpressionTreeStringFormatter.cs
r4961 r4968 25 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 26 27 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding {27 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Formatters { 28 28 29 29 [Item("SymbolicExpressionTreeStringFormatter", "The default string formatter for symbolic expression trees.")]
Note: See TracChangeset
for help on using the changeset viewer.