Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/27/11 10:26:09 (14 years ago)
Author:
mkommend
Message:

ticket #1374 - Implemented root symbol and changed power as well as root symbol to use a rounded exponent.

File:
1 edited

Legend:

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

    r5373 r5384  
    5454      var log = new Logarithm();
    5555      var pow = new Power();
     56      pow.InitialFrequency = 0.0;
     57      var root = new Root();
     58      root.InitialFrequency = 0.0;
    5659      var exp = new Exponential();
    5760      var @if = new IfThenElse();
     
    7679      laggedVariable.InitialFrequency = 0.0;
    7780
    78       var allSymbols = new List<Symbol>() { add, sub, mul, div, mean, sin, cos, tan, log, pow, exp, @if, gt, lt, and, or, not, timeLag, integral, derivative, constant, variableSymbol, laggedVariable };
     81      var allSymbols = new List<Symbol>() { add, sub, mul, div, mean, sin, cos, tan, log, pow, root, exp, @if, gt, lt, and, or, not, timeLag, integral, derivative, constant, variableSymbol, laggedVariable };
    7982      var unaryFunctionSymbols = new List<Symbol>() { sin, cos, tan, log, exp, not, timeLag, integral, derivative };
    8083
    81       var binaryFunctionSymbols = new List<Symbol>() { pow, gt, lt };
     84      var binaryFunctionSymbols = new List<Symbol>() { pow, root, gt, lt };
    8285      var functionSymbols = new List<Symbol>() { add, sub, mul, div, mean, and, or };
    8386      var terminalSymbols = new List<Symbol>() { variableSymbol, constant, laggedVariable };
Note: See TracChangeset for help on using the changeset viewer.