Free cookie consent management tool by TermsFeed Policy Generator

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

File:
1 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;
Note: See TracChangeset for help on using the changeset viewer.