- Timestamp:
- 05/07/08 21:29:06 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified branches/ExperimentalFunctionsBaking/BakedTreeEvaluator.cs ΒΆ
r223 r227 114 114 double weight = dataArr[DP++]; 115 115 int offset = (int)dataArr[DP++]; 116 return weight * dataset.GetValue(sampleIndex + offset, var); 116 int row = sampleIndex + offset; 117 if(row < 0 || row >= dataset.Rows) return double.NaN; 118 else return weight * dataset.GetValue(row, var); 117 119 } 118 120 case CONSTANT: {
Note: See TracChangeset
for help on using the changeset viewer.