Skip to content

Commit e01e237

Browse files
committed
Correct indexing bugs due to incorrect refactor in robustIteration()
1 parent cdbe03c commit e01e237

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/algorithms/util/ARModel.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@ class ARModel
204204
// Iterate to find new filtered input
205205
for (index i = 0; i < size; i++)
206206
{
207-
const double prediction = fowardPrediction(estimates);
208-
estimates[0] =
207+
const double prediction = fowardPrediction(estimates + i);
208+
estimates[i] =
209209
prediction +
210210
robustResidual(input[i], prediction, robustFactor * sqrt(mVariance));
211211
}

0 commit comments

Comments
 (0)