kalman-filter icon indicating copy to clipboard operation
kalman-filter copied to clipboard

Implement Forward-Backward KF

Open piercus opened this issue 4 years ago • 4 comments
trafficstars

It's in the doc, but nothing in the code about this

piercus avatar Feb 22 '21 13:02 piercus

Any progress on this?

mcskinner avatar Apr 18 '21 19:04 mcskinner

Also cant get this working in browser, using kalman.filter.min. Doesnt look like the function has any options. Is it extended somewhere else that hasnt been included in the .min package?

asmi242 avatar Apr 04 '24 00:04 asmi242

@asmi242 I'm not sure you are in the right issue.

If you have an issue with the browser version, please open a new issue with detailed reproduction step and detailed actual description (with screenshots) and precise expectations.

piercus avatar Apr 04 '24 05:04 piercus

@asmi242 I'm not sure you are in the right issue.

If you have an issue with the browser version, please open a new issue with detailed reproduction step and detailed actual description (with screenshots) and precise expectations.

Hi @piercus, thanks for your reply.

I have setup a basic constant acceleration filter as in the example in the documentation (See screenshot). I have included kalman-filter.min in my webapp, and have successfully used the filter. I'm currently trying to call the filterAll function using the two methods given. When I call the filter using (1), it works as expected and returns filtered observations. When I call it using (2) it gives the error that 't is not iteratable'.

  1. results = kFilter.filterAll(observations);
  2. results = kFilter.filterAll({ observations, passMode: 'forward-backward' });

You can see a screenshost of the code, with basic observations: image

And the console error: image

Successful filtering without using the passMode option: image

asmi242 avatar Apr 10 '24 04:04 asmi242