Coder Social home page Coder Social logo

kalman's Introduction

kalman

An implementation of the Kalman filter based on https://home.wlu.edu/~levys/kalman_tutorial/

Installation

Download from https://github.com/recursiveMake/kalman

Usage

lein repl
;; Load matrix
(require '[clojure.core.matrix :as m])

(require '[kalman.system :refer [set-system-parameter, create-system]])

;; Create a system with parameters
(def start-state
  (set-system-parameter (create-system 1 1)
                        {:state (m/matrix [881])
                         :sensor-noise (m/matrix [[200]])
                         :state-predict (m/matrix [[0.75]])}))

;; Create observations
(def obs (map #(m/matrix [%]) [662 496 372 279 157 118 88 66]))

;; Run the filter
(kalman start-state obs)

;; Load sample data 
(require '[kalman.sample :as sample])
(def s-data (sample/data (sample/file-name)))

;; Create observables
(def obs (sample/observables s-data))

;; Create a system
(def system (sample/system (first obs)))

;; Run filter
(logging-kalman system (rest obs))

;; Visualize path
(require '[kalman.visual :as visual])
(def v-data (visual/data))

;; Plot raw data positions
(visual/v (visual/plot v-data))

License

Copyright © 2017 recursiveMake

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

kalman's People

Contributors

recursivemake avatar

Watchers

 avatar  avatar

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.