Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buggy RLS filter implementation #77

Open
richardpl opened this issue Apr 21, 2023 · 3 comments
Open

Buggy RLS filter implementation #77

richardpl opened this issue Apr 21, 2023 · 3 comments

Comments

@richardpl
Copy link

This line looks wrong:

_dp[i, j] = _tmp[i, k] * _p[k, j];

Are there any tests to make sure that this implementation behave correctly?

@ar1st0crat
Copy link
Owner

Looks like an ordinary matrix multiplication (straightforward implementation, not the most efficient, though). I didn't write tests for adaptive filters, but there are demo forms that allow us checking the results. In particular, this form:

image

@richardpl
Copy link
Author

Even if implementation idea is correct, the matrix multiplication I linked above is flawed. One needs +=. Otherwise older values are overwritten.

@ar1st0crat
Copy link
Owner

You're right - it's a bug; it should be +=. Thanks for noticing. I'll double-check this and fix it when I have the time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants