Ignore:
Timestamp:
11/24/21 13:40:39 (6 months ago)
Author:
chaider
Message:

#3041

  • Renaming Constant Symbol to Num, behaves like before
  • Adding new Symbol RealConstant (Constant), this symbol behaves now like a real constant, won't be changed by parameter optimization or manipulators
  • Refactored classes part1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3140_NumberSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Grammars/LinearScalingGrammar.cs

    r17958 r18093  
    6666      var abs = new Absolute();
    6767      var aq = new AnalyticQuotient();
    68       var constant = new Constant();
     68      var constant = new Num();
    6969      constant.MinValue = -20;
    7070      constant.MaxValue = 20;
     71      var number = new RealConstant();
     72      number.MinValue = -20;
     73      number.MaxValue = 20;
    7174      var variableSymbol = new Variable();
    7275
     
    7881      //all other symbols
    7982      var allSymbols = new List<Symbol> {
    80         add, sub, mul, div, constant, variableSymbol, sin, cos, tan, log, square, sqrt, cube, cbrt, exp,
     83        add, sub, mul, div, constant, number, variableSymbol, sin, cos, tan, log, square, sqrt, cube, cbrt, exp,
    8184        tanh, aq, abs
    8285      };
     
    8689      var realValueSymbols = new List<Symbol> {
    8790         add, sub, mul, div, sin, cos, tan, tanh, exp, log, aq, abs, square, cube, sqrt, cbrt,
    88          variableSymbol, constant,
     91         variableSymbol, constant, number
    8992        };
    9093
Note: See TracChangeset for help on using the changeset viewer.