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

Kalmanjs in real time? #3

Closed
ruralkan opened this issue May 18, 2016 · 2 comments
Closed

Kalmanjs in real time? #3

ruralkan opened this issue May 18, 2016 · 2 comments

Comments

@ruralkan
Copy link

Hi

Great job, I have a question, I saw you have a data set to apply Kalman Filter, so, It's possible apply to real time data??

Sorry I newby in javascript

Best regards

@wouterbulten
Copy link
Owner

Yes, it is meant to be used with real time data :)

As in the example (this is ES6):

import KalmanFilter from 'kalmanjs';

const kf = new KalmanFilter();

console.log(filteredValue = kf.filter( readRealTimeValueFromSomething() ));

... later ...

console.log(filteredValue = kf.filter( readRealTimeValueFromSomething() ));

Each time you receive / measure a new data point just apply filter() and you will receive the filtered value. Does that help you?

See also: https://wouterbulten.nl/blog/tech/lightweight-javascript-library-for-noise-filtering/

@wouterbulten
Copy link
Owner

Closed. Please let me know when my comment didn't solve your problem :)

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