- Timestamp:
- 02/19/10 18:49:17 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.GP.StructureIdentification.TimeSeries/3.3
- Files:
-
- 2 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 -
trunk/sources/HeuristicLab.GP.StructureIdentification.TimeSeries/3.3/StandardGPTimeSeriesPrognosis.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 39 } 50 40 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 41 protected override IOperator CreateModelAnalyzerOperator() { 64 42 return DefaultTimeSeriesOperators.CreatePostProcessingOperator(); 65 }66 67 protected override VariableInjector CreateGlobalInjector() {68 VariableInjector injector = base.CreateGlobalInjector();69 injector.AddVariable(new HeuristicLab.Core.Variable("MinTimeOffset", new IntData()));70 injector.AddVariable(new HeuristicLab.Core.Variable("MaxTimeOffset", new IntData()));71 return injector;72 43 } 73 44
Note: See TracChangeset
for help on using the changeset viewer.