Code Monkey home page Code Monkey logo

berrfs's Introduction

BerRFS

Stands for Bernoulli Random Finite Set. It is a rust implementation with python bindings of Ristic et.al. tutorial on Bernoulli filters.

Development

A development environment may be activated using

nix develop .

followed by

maturin develop

This will construct a virtual environment in your current directory at .venv. Using maturin, development loop is quick. Change some rust or python code, rerun maturin develop and you should have an incremental debug build of the project. Running maturin develop --release will give that same environment, but the rust library is compiled in release mode, i.e., speed!

After running maturin develop, you may see a target tracking example using the particle-filter-based bernoulli random finite set on detection measurements using

python -m berrfs.example

Entering a python shell should now give you access to the python module. An example instance of a BerRFS-struct (the Gaussian Sum Filter implementation) can be constructed using

# Python 
import berrfs
b = berrfs.example_setup()

on which you can perform prediction steps

b.predict()

and measurement updates

b.update([np.array([1.]), np.array([2.])])

Note that the measurement update performs a prediction step before applying the information from the measurements.

Release mode

A shell with a python environment with this module compiled in release mode is constructed through instead by running

nix develop .#pyrelease

Now, there is no need to use maturin. The library should already be installed in your python environment. The build is likely to take a few minutes.

berrfs's People

Contributors

jdbosser avatar

Watchers

 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.