Skip to content

Commit

Permalink
Correct indexing bugs due to incorrect refactor in robustIteration()
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexHarker committed Mar 1, 2022
1 parent cdbe03c commit e01e237
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/algorithms/util/ARModel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ class ARModel
// Iterate to find new filtered input
for (index i = 0; i < size; i++)
{
const double prediction = fowardPrediction(estimates);
estimates[0] =
const double prediction = fowardPrediction(estimates + i);
estimates[i] =
prediction +
robustResidual(input[i], prediction, robustFactor * sqrt(mVariance));
}
Expand Down

0 comments on commit e01e237

Please sign in to comment.