Free cookie consent management tool by TermsFeed Policy Generator

Changeset 133


Ignore:
Timestamp:
04/18/08 15:16:54 (17 years ago)
Author:
gkronber
Message:

changed GP 'terminal symbol' Variable to return NaN for index outside the range of the dataset (for instance when negative time-offsets are allowed and a model is evaluated for the first sample)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Functions/Variable.cs

    r2 r133  
    109109      int offset = sampleOffset.Data;
    110110
     111      if(sampleIndex+offset<0 || sampleIndex+offset>=dataset.Rows) return double.NaN;
    111112      return w * dataset.GetValue(sampleIndex + offset, v);
    112113    }
Note: See TracChangeset for help on using the changeset viewer.