Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/16/09 17:14:34 (15 years ago)
Author:
gkronber
Message:

Fixed #747 (GP engines create model with non-zero time-offsets).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/Symbols/Variable.cs

    r2222 r2365  
    2323using HeuristicLab.Operators;
    2424using HeuristicLab.Random;
     25using HeuristicLab.Data;
    2526
    2627namespace HeuristicLab.GP.StructureIdentification {
    27   public class Variable : Terminal {   
     28  public class Variable : Terminal {
    2829    public const string WEIGHT = "Weight";
    2930    public const string OFFSET = "SampleOffset";
     
    99100      offsetRandomAdder.GetVariableInfo("Value").ActualName = OFFSET;
    100101      offsetRandomAdder.Name = "Offset Adder";
     102      offsetRandomAdder.GetVariableInfo("MinValue").Local = true;
     103      offsetRandomAdder.AddVariable(new HeuristicLab.Core.Variable("MinValue", new DoubleData(minOffset)));
     104      offsetRandomAdder.GetVariableInfo("MaxValue").Local = true;
     105      offsetRandomAdder.AddVariable(new HeuristicLab.Core.Variable("MaxValue", new DoubleData(maxOffset + 1)));
    101106
    102107      combinedOp.OperatorGraph.AddOperator(seq);
Note: See TracChangeset for help on using the changeset viewer.