Free cookie consent management tool by TermsFeed Policy Generator

Changeset 193


Ignore:
Timestamp:
04/25/08 14:55:10 (17 years ago)
Author:
gkronber
Message:

fixed a bug introduced while refactoring

File:
1 edited

Legend:

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

    r192 r193  
    9898
    9999    public override double Evaluate(Dataset dataset, int sampleIndex) {
     100      if(sampleIndex + offset.Data < 0 || sampleIndex + offset.Data >= dataset.Rows) return double.NaN;
    100101      return weight.Data * dataset.GetValue(sampleIndex + offset.Data, index.Data);
    101102    }
Note: See TracChangeset for help on using the changeset viewer.