Free cookie consent management tool by TermsFeed Policy Generator

Changeset 1915


Ignore:
Timestamp:
05/27/09 16:13:07 (15 years ago)
Author:
mkommend
Message:

corrected bug in conditional evaluators (mixed up min and max time offsets) ticket #515

Location:
trunk/sources/HeuristicLab.GP.StructureIdentification.ConditionalEvaluation/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.GP.StructureIdentification.ConditionalEvaluation/3.3/ConditionalEvaluatorBase.cs

    r1902 r1915  
    5050        // check if condition variable is true between sample - minTimeOffset and sample - maxTimeOffset
    5151        bool skip = false;
    52         for (int checkIndex = sample - minTimeOffset; checkIndex <= sample - maxTimeOffset && !skip ; checkIndex++) {
     52        for (int checkIndex = sample + minTimeOffset; checkIndex <= sample + maxTimeOffset && !skip ; checkIndex++) {
    5353          if (dataset.GetValue(checkIndex, conditionVariable) == 0)
    5454            skip = true;
  • trunk/sources/HeuristicLab.GP.StructureIdentification.ConditionalEvaluation/3.3/ConditionalSimpleEvaluator.cs

    r1902 r1915  
    5757        // check if condition variable is true between sample - minTimeOffset and sample - maxTimeOffset
    5858        bool skip = false;
    59         for (int checkIndex = sample - minTimeOffset; checkIndex <= sample - maxTimeOffset && !skip ; checkIndex++) {
     59        for (int checkIndex = sample + minTimeOffset; checkIndex <= sample + maxTimeOffset && !skip ; checkIndex++) {
    6060          if (dataset.GetValue(checkIndex, conditionVariable) == 0)
    6161            skip = true;
Note: See TracChangeset for help on using the changeset viewer.