Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/02/20 16:35:29 (4 years ago)
Author:
pfleck
Message:

#3040 Simplified default vector grammar.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3040_VectorBasedGP/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Grammars/TypeCoherentVectorExpressionGrammar.cs

    r17463 r17465  
    185185      AddAllowedChildSymbol(vectorroot, constant, 1);
    186186      #endregion
     187
     188      #region default enabled/disabled
     189      var disabledByDefault = new[] {
     190        TrigonometricFunctionsName, ExponentialFunctionsName, PowerFunctionsName,
     191        VectorTrigonometricFunctionsName, VectorExponentialFunctionsName, VectorPowerFunctionsName
     192      };
     193      foreach (var grp in Symbols.Where(sym => disabledByDefault.Contains(sym.Name)))
     194        grp.Enabled = false;
     195      #endregion
    187196    }
    188197
Note: See TracChangeset for help on using the changeset viewer.