Changeset 193
- Timestamp:
- 04/25/08 14:55:10 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Functions/Variable.cs
r192 r193 98 98 99 99 public override double Evaluate(Dataset dataset, int sampleIndex) { 100 if(sampleIndex + offset.Data < 0 || sampleIndex + offset.Data >= dataset.Rows) return double.NaN; 100 101 return weight.Data * dataset.GetValue(sampleIndex + offset.Data, index.Data); 101 102 }
Note: See TracChangeset
for help on using the changeset viewer.