GithubHelp home page GithubHelp logo

kalman.js's People

Contributors

infusion avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

kalman.js's Issues

Using Sylvester A.multiply is not a function

I have been been trying to use Kalman.js in a simple node application, but I struggling to resolve the error 'TypeError: Cannot read property 'multiply' of undefined'. I am using Sylvester. I have looked at issue #1 which used math and part of the resolution was a recommendation to use Sylvester.

I rewrote the math code using Sylvester and it gives the same error about A.multipy.

My adapted code is from issue 1 is:

const Kalman = require('kalman');
const sylvester = require('sylvester');

let valx = [ 4, 5 ];
let valp = $M([[ 5, 0 ], [ 0, 4 ]]);

var valr = [];
var vala = $M([[ 5, 0 ], [ 0, 4 ]]);
valr['A'] = vala;

let kf = new Kalman.KF(valx, valp);
kf.update(valr);

Running this gives: TypeError: Cannot read property 'multiply' of undefined
at KF.update (C:\Users\david\source\repos\sharesApr2020\NodeJS\nodeApp\node_modules\kalman\kalman.js:75:36).

I am probably missing something simple. Do you have any suggestions?

three dimensions

Hello!

This example filters use only longitude and latitude, but not altitude

image

Can you help me to modify function?

Thanks

Error to use update: TypeError: A.multiply is not a function

I've got installed the kalman library through the NPM and try to start my code:

var kalman = require('kalman');
var math = require('mathjs');

let valx = [ 4, 5 ];
let valp = math.matrix([[ 5, 0 ], [ 0, 4 ]]);

var valr = [];
var vala = math.matrix([[ 5, 0 ], [ 0, 4 ]]);
valr['A'] = vala;

let kf = new kalman.KF(valx, valp);

kf.update(valr);

After start found the error:
Wondering what's wrong, thanks.


kalman.js:75
var xhat = A.multiply(x).add(B.multiply(u));
^

TypeError: A.multiply is not a function
at KF.update (...kalman.js:75:18)
at Object. (...index2.js:21:4)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Function.Module.runMain (module.js:694:10)
at startup (bootstrap_node.js:204:16)
at bootstrap_node.js:625:3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.