Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/12/11 13:19:53 (14 years ago)
Author:
mkommend
Message:

Implemented Power symbol for GP (ticket #1374).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/FullFunctionalExpressionGrammar.cs

    r4722 r5288  
    5353      var tan = new Tangent();
    5454      var log = new Logarithm();
     55      var pow = new Power();
    5556      var exp = new Exponential();
    5657      var @if = new IfThenElse();
     
    6768      laggedVariable.InitialFrequency = 0.0;
    6869
    69       var allSymbols = new List<Symbol>() { add, sub, mul, div, mean, sin, cos, tan, log, exp, @if, gt, lt, and, or, not, constant, variableSymbol, laggedVariable };
     70      var allSymbols = new List<Symbol>() { add, sub, mul, div, mean, sin, cos, tan, log, pow, exp, @if, gt, lt, and, or, not, constant, variableSymbol, laggedVariable };
    7071      var unaryFunctionSymbols = new List<Symbol>() { sin, cos, tan, log, exp, not };
    71       var binaryFunctionSymbols = new List<Symbol>() { gt, lt };
     72      var binaryFunctionSymbols = new List<Symbol>() { pow, gt, lt };
    7273      var functionSymbols = new List<Symbol>() { add, sub, mul, div, mean, and, or };
    7374      var terminalSymbols = new List<Symbol>() { variableSymbol, constant, laggedVariable };
Note: See TracChangeset for help on using the changeset viewer.