Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/28/10 11:06:46 (13 years ago)
Author:
gkronber
Message:

Moved graphviz formatter into symbolic expression tree encoding plugin. #1270

Location:
branches/DataAnalysis.Extensions/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Formatters
Files:
1 added
1 moved

Legend:

Unmodified
Added
Removed
  • branches/DataAnalysis.Extensions/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Formatters/SymbolicExpressionTreeGraphvizFormatter.cs

    r4961 r4968  
    2727using HeuristicLab.Common;
    2828
    29 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Formatters {
    30   [Item("SymbolicExpressionTreeGraphvizFormatter", "Formatter for symbolic expression trees for import into GraphViz documents.")]
     29namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Formatters {
     30  [Item("GraphViz String Formatter", "Formatter for symbolic expression trees for visualization with GraphViz.")]
    3131  public sealed class SymbolicExpressionTreeGraphvizFormatter : NamedItem, ISymbolicExpressionTreeStringFormatter {
    3232    public bool Indent { get; set; }
    3333
    3434    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 
    5235      // match Koza style
    5336      {"ProgramRootSymbol", "Prog"},
     
    5639
    5740    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.") {
    5942      Indent = true;
    6043    }
Note: See TracChangeset for help on using the changeset viewer.