Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/07/08 15:10:51 (16 years ago)
Author:
gkronber
Message:

implemented #195

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Functions/ModelAnalyzerExporter.cs

    r344 r365  
    5959    public void Visit(Cosinus cosinus) {
    6060      VisitFunction("Trigonometrics[1]", cosinus);
     61    }
     62
     63    public void Visit(Differential differential) {
     64      double weight = ((ConstrainedDoubleData)currentBranch.GetLocalVariable(HeuristicLab.Functions.Differential.WEIGHT).Value).Data;
     65      double index = ((ConstrainedIntData)currentBranch.GetLocalVariable(HeuristicLab.Functions.Differential.INDEX).Value).Data;
     66      double offset = ((ConstrainedIntData)currentBranch.GetLocalVariable(HeuristicLab.Functions.Differential.OFFSET).Value).Data;
     67
     68      prefix += currentIndend + "[T]Differential(" + weight.ToString("r") + ";" + index + ";" + -offset + ")";
    6169    }
    6270
Note: See TracChangeset for help on using the changeset viewer.