Changeset 1911
- Timestamp:
- 05/27/09 15:00:16 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/FunctionLibraryInjector.cs
r1910 r1911 116 116 ItemList<IntData> allowedFeatures = GetVariableValue<ItemList<IntData>>(ALLOWEDFEATURES, scope, true); 117 117 int targetVariable = GetVariableValue<IntData>(TARGETVARIABLE, scope, true).Data; 118 int minTimeOffset = GetVariableValue<IntData>(MINTIMEOFFSET, scope, true).Data; 119 int maxTimeOffset = GetVariableValue<IntData>(MAXTIMEOFFSET, scope, true).Data; 120 bool autoregressive = GetVariableValue<BoolData>(AUTOREGRESSIVE, scope, true).Data; 118 119 // try to get minTimeOffset (use 0 as default if not available) 120 IItem minTimeOffsetItem = GetVariableValue(MINTIMEOFFSET, scope, true, false); 121 int minTimeOffset = minTimeOffsetItem == null ? 0 : ((IntData)minTimeOffsetItem).Data; 122 // try to get maxTimeOffset (use 0 as default if not available) 123 IItem maxTimeOffsetItem = GetVariableValue(MAXTIMEOFFSET, scope, true, false); 124 int maxTimeOffset = maxTimeOffsetItem == null ? 0 : ((IntData)maxTimeOffsetItem).Data; 125 // try to get flag autoregressive (use false as default if not available) 126 IItem autoRegItem = GetVariableValue(AUTOREGRESSIVE, scope, true, false); 127 bool autoregressive = autoRegItem == null ? false : ((BoolData)autoRegItem).Data; 121 128 122 129 if (autoregressive) {
Note: See TracChangeset
for help on using the changeset viewer.