Changeset 2365 for trunk/sources/HeuristicLab.GP.StructureIdentification
- Timestamp:
- 09/16/09 17:14:34 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/Symbols/Variable.cs
r2222 r2365 23 23 using HeuristicLab.Operators; 24 24 using HeuristicLab.Random; 25 using HeuristicLab.Data; 25 26 26 27 namespace HeuristicLab.GP.StructureIdentification { 27 public class Variable : Terminal { 28 public class Variable : Terminal { 28 29 public const string WEIGHT = "Weight"; 29 30 public const string OFFSET = "SampleOffset"; … … 99 100 offsetRandomAdder.GetVariableInfo("Value").ActualName = OFFSET; 100 101 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))); 101 106 102 107 combinedOp.OperatorGraph.AddOperator(seq);
Note: See TracChangeset
for help on using the changeset viewer.