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

GCC: Maybe bug in kalman filter #286

Closed
sterlingdeng opened this issue Nov 8, 2024 · 4 comments · Fixed by #287
Closed

GCC: Maybe bug in kalman filter #286

sterlingdeng opened this issue Nov 8, 2024 · 4 comments · Fixed by #287

Comments

@sterlingdeng
Copy link
Contributor

sterlingdeng commented Nov 8, 2024

Your environment.

  • Version: latest

What happened?

The bug lies in this section of code in the Kalman filter..
https://github.com/pion/interceptor/blob/master/pkg/gcc/kalman.go#L81-L84
I think it should be an if else statement, as this is what I'm seeing in another implementation https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/blob/main/net/rtp/src/gcc/imp/kalman_estimator.rs?ref_type=heads#L53-59
and how I interpret it from the RFC

If z(i) > 3sqrt(var_v_hat) the filter is updated with 3sqrt(var_v_hat) rather than z(i).

In https://datatracker.ietf.org/doc/html/draft-ietf-rmcat-gcc-02#section-5.3

It would be great to have another pair of eyes on it

@sterlingdeng
Copy link
Contributor Author

@mengelbart Could you take a look?

@kcaffrey
Copy link
Contributor

I wasn't involved in writing the GCC implementation, but I agree with your assessment that it should be an if else statement.

@mengelbart
Copy link
Contributor

Yes, I think you are correct. Want to open a PR @sterlingdeng ?

@sterlingdeng
Copy link
Contributor Author

Yep I can push a PR for this.

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

Successfully merging a pull request may close this issue.

3 participants