Changeset 2843 for trunk/sources/HeuristicLab.GP.StructureIdentification.TimeSeries/3.3/OffspringSelectionGPTimeSeriesPrognosis.cs
- Timestamp:
- 02/19/10 18:49:17 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.GP.StructureIdentification.TimeSeries/3.3/OffspringSelectionGPTimeSeriesPrognosis.cs
r2821 r2843 35 35 } 36 36 37 public int MinTimeOffset {38 get { return GetVariableInjector().GetVariable("MinTimeOffset").GetValue<IntData>().Data; }39 set { GetVariableInjector().GetVariable("MinTimeOffset").GetValue<IntData>().Data = value; }40 }41 42 public int MaxTimeOffset {43 get { return GetVariableInjector().GetVariable("MaxTimeOffset").GetValue<IntData>().Data; }44 set { GetVariableInjector().GetVariable("MaxTimeOffset").GetValue<IntData>().Data = value; }45 }46 47 37 protected override IOperator CreateProblemInjector() { 48 38 return DefaultTimeSeriesOperators.CreateProblemInjector(); 49 }50 51 protected override IOperator CreateFunctionLibraryInjector() {52 CombinedOperator op = new CombinedOperator();53 op.Name = "FunctionLibraryInjector";54 SequentialProcessor seq = new SequentialProcessor();55 DefaultFunctionLibraryInjector funLibInjector = new DefaultFunctionLibraryInjector();56 seq.AddSubOperator(funLibInjector);57 seq.AddSubOperator(new ScalingTreeEvaluatorInjector());58 op.OperatorGraph.AddOperator(seq);59 op.OperatorGraph.InitialOperator = seq;60 return op;61 }62 63 protected override VariableInjector CreateGlobalInjector() {64 VariableInjector injector = base.CreateGlobalInjector();65 injector.AddVariable(new HeuristicLab.Core.Variable("MinTimeOffset", new IntData()));66 injector.AddVariable(new HeuristicLab.Core.Variable("MaxTimeOffset", new IntData()));67 return injector;68 39 } 69 40
Note: See TracChangeset
for help on using the changeset viewer.