Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bencevans/kalman-filter

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bencevans/kalman-filter

Kalman Filter

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

@bencevans/kalman-filter

Typescript / JavaScript Implementation of Kalman Filter

Install

npm install --save @bencevans/kalman-filter

Example (Single Measurement)

> import KalmanFilter from '@bencevans/kalman-filter';

> const filter = new KalmanFilter({
    initialEstimate: 0,
    initialErrorInEstimate: 1
  })

> const [estimate, errorInEstimate] = filter.update({
    measurement: 20,
    errorInMeasurement: 0
  });

> estimate
20
> errorInEstimate
0

Example (Multiple Measurements)

Measurements with multiple numeric values e.g. coordinates.

> import { KalmanFilterArray } from '@bencevans/kalman-filter';

> const filter = new KalmanFilterArray({
    initialEstimate: [0, 1],
    initialErrorInEstimate: 1
  })

> const [estimate, errorInEstimate] = filter.update({
    measurement: [1, 1],
    errorInMeasurement: 0.4
  });

> estimate
[ 0.7142857142857143, 1 ]
> errorInEstimate
0.2857142857142857
  • https://en.wikipedia.org/wiki/Kalman_filter
  • https://www.youtube.com/watch?v=CaCcOwJPytQ&list=PLX2gX-ftPVXU3oUFNATxGXY90AULiqnWT

Keywords

FAQs

Package last updated on 02 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc