Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/17/20 11:23:37 (4 years ago)
Author:
pfleck
Message:

#3040 Stores the datatype of a tree node (e.g. variable nodes) in the tree itself for the interpreter to derive the datatypes for subtrees. This way, the interpreter (and simplifier) do not need an actual dataset to figure out datatypes for subtrees.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3040_VectorBasedGP/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Symbols/VariableBase.cs

    r17180 r17604  
    142142      get { return maximumArity; }
    143143    }
     144
     145    [Storable]
     146    private Type variableDataType;
     147    public Type VariableDataType {
     148      get { return variableDataType; }
     149      set {
     150        if (variableDataType == value) return;
     151        variableDataType = value;
     152        OnChanged(EventArgs.Empty);
     153      }
     154    }
    144155    #endregion
    145156
     
    166177      multiplicativeWeightManipulatorSigma = original.multiplicativeWeightManipulatorSigma;
    167178      variableChangeProbability = original.variableChangeProbability;
     179      variableDataType = original.variableDataType;
    168180    }
    169181    protected VariableBase(string name, string description)
Note: See TracChangeset for help on using the changeset viewer.