Changeset 1916 for trunk/sources/HeuristicLab.GP.StructureIdentification.ConditionalEvaluation/3.3/ConditionalSimpleEvaluator.cs
- Timestamp:
- 05/27/09 17:04:48 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.GP.StructureIdentification.ConditionalEvaluation/3.3/ConditionalSimpleEvaluator.cs
r1915 r1916 53 53 int minTimeOffset = GetVariableValue<IntData>("MinTimeOffset", scope, true).Data; 54 54 int conditionVariable = GetVariableValue<IntData>("ConditionVariable", scope, true).Data; 55 int skippedSampels = 0; 55 56 56 57 for (int sample = start; sample < end; sample++) { … … 58 59 bool skip = false; 59 60 for (int checkIndex = sample + minTimeOffset; checkIndex <= sample + maxTimeOffset && !skip ; checkIndex++) { 60 if (dataset.GetValue(checkIndex, conditionVariable) == 0) 61 if (dataset.GetValue(checkIndex, conditionVariable) == 0) { 61 62 skip = true; 63 skippedSampels++; 64 } 62 65 } 63 66 if (!skip) { … … 73 76 } 74 77 } 78 scope.GetVariableValue<DoubleData>("TotalEvaluatedNodes", true).Data -= skippedSampels; 75 79 } 76 80 }
Note: See TracChangeset
for help on using the changeset viewer.