Free cookie consent management tool by TermsFeed Policy Generator

Changeset 518


Ignore:
Timestamp:
08/18/08 15:45:25 (16 years ago)
Author:
gkronber
Message:

fixed a typo (#258)

File:
1 edited

Legend:

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

    r365 r518  
    2929  public class ModelAnalyzerExporter : IFunctionVisitor {
    3030    private string prefix;
    31     private string currentIndend = "";
     31    private string currentIndent = "";
    3232    private IFunctionTree currentBranch;
    3333    public string ModelAnalyzerPrefix {
     
    3939
    4040    private void VisitFunction(string name, IFunction f) {
    41       prefix += currentIndend + "[F]" + name + "(\n";
     41      prefix += currentIndent + "[F]" + name + "(\n";
    4242    }
    4343
     
    5454    public void Visit(Constant constant) {
    5555      double value = ((ConstrainedDoubleData)currentBranch.GetLocalVariable(HeuristicLab.Functions.Constant.VALUE).Value).Data;
    56       prefix += currentIndend + "[T]Constant(" + value.ToString("r") + ";0;0)";
     56      prefix += currentIndent + "[T]Constant(" + value.ToString("r") + ";0;0)";
    5757    }
    5858
     
    6666      double offset = ((ConstrainedIntData)currentBranch.GetLocalVariable(HeuristicLab.Functions.Differential.OFFSET).Value).Data;
    6767
    68       prefix += currentIndend + "[T]Differential(" + weight.ToString("r") + ";" + index + ";" + -offset + ")";
     68      prefix += currentIndent + "[T]Differential(" + weight.ToString("r") + ";" + index + ";" + -offset + ")";
    6969    }
    7070
     
    114114      double offset = ((ConstrainedIntData)currentBranch.GetLocalVariable(HeuristicLab.Functions.Variable.OFFSET).Value).Data;
    115115
    116       prefix += currentIndend + "[T]Variable(" + weight.ToString("r") + ";" + index + ";" + -offset + ")";
     116      prefix += currentIndent + "[T]Variable(" + weight.ToString("r") + ";" + index + ";" + -offset + ")";
    117117    }
    118118
     
    157157      currentBranch = functionTree;
    158158      functionTree.Function.Accept(this);
    159       currentIndend += "  ";
     159      currentIndent += "  ";
    160160      foreach(IFunctionTree subTree in functionTree.SubTrees) {
    161161        Visit(subTree);
     
    164164      prefix = prefix.TrimEnd(';', '\n');
    165165      if(functionTree.SubTrees.Count>0) prefix += ")";
    166       currentIndend = currentIndend.Remove(0, 2);
     166      currentIndent = currentIndent.Remove(0, 2);
    167167    }
    168168  }
Note: See TracChangeset for help on using the changeset viewer.