Giter Site home page Giter Site logo

ezzine1993 / kalmankt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from windsekirun/kalmankt

0.0 0.0 0.0 2.71 MB

Kotlin Shared Library for Android, IOS that provides implementations for Kalman filters and geohash filters for increase accuracy of Geolocations

License: MIT License

Kotlin 41.47% Objective-C 58.53%

kalmankt's Introduction

KalmanKt

Kotlin Shared Library for Android, IOS that provides implementations for Kalman filters and geohash filters for increase accuracy of Geolocations

It use the Kalman filter algorithm to predict the correction. (Not Extended Kalman Filter, because it's too hard to me >.<)

This library use Kotlin Multiplatform for Kotlin/JVM(Android) and Kotlin/Native(IOS).

Usages

Android

Install

  1. Add 'KalmanKt-Jvm-1.0.0.jar' into libs folder. Download here
  2. Sync Project with Gradle.

Usage with KalmanProcessor.kt

Because of lack support of Kotlin Multiplatform, This library provide pure implementations for Kalman filters and geohash filters.

So, This library provide 'KalmanProcessor' to handle predict using KalmanFilter.

  1. Download this code and put into your project.
  2. Generate instance of KalmanProcessor by private val kalmanProcessor = KalmanProcessor().
  3. Reset processor before start LocationManager.requestLocationUpdates. by kalmanProcessor.reset(8, 2)
  4. Receive predicted result by kalmanProcessor.setLocationCallback(1000) {}
  5. When onLocationChanged is called, call kalmanProcessor.process(location)

IOS (Swift)

Install

  1. Add KalmanKt.framework into XCode project. Download arm64 for real device, x86_64 for simulator. Download here
  2. Add KalmanKt.framework to Embeed Binaries, Linked Frameworks and Libraries.
  3. Disable bitcode by Build Settings > 'Enable Bitcode' to false. Kotlin/Native produces the fully native binaries, not the LLVM bitcode.

Usage with KalmanProcessor.swift

TBD.

(I had no experience developing IOS myself, so I asked a friend for help. It will be updated soon.)

Update History

  • Ver 1.0.0 (2019-01-20) Initial Release

License

MIT License.

kalmankt's People

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.