Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shybovycha/activity-detector
Program detecting activity based on data from accelerometer and timestamp.
https://github.com/shybovycha/activity-detector
Last synced: 21 days ago
JSON representation
Program detecting activity based on data from accelerometer and timestamp.
- Host: GitHub
- URL: https://github.com/shybovycha/activity-detector
- Owner: shybovycha
- Created: 2015-05-28T15:25:08.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-21T10:45:21.000Z (almost 9 years ago)
- Last Synced: 2024-04-13T07:57:50.491Z (9 months ago)
- Language: Haskell
- Size: 980 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ActivityDetector
## Overview
This program detects activity (sitting/walking/staying/jumping/running) from over a data, gathered from accelerometer and timestamped.
## Running
$ ghci
> :l src/ActivityDetector.hs samples/AccelDataRunning.hs
> import AccelDataRunningThis will load all the code and sample data.
getAccelDataParams (ts, xs, ys, zs )
This will return three tuples of `(frequency, amplitude)` for each of axes - X, Y and Z.
## Analysis
Here are samples' output parameters:
jumping = ((2.9940119760479043,24.728),(1.7003188097768331,39.217),(2.5,38.729))
sitting = ((7.075745273170166,17.697),(7.830853563038371,11.175999999999998),(2.901704751541531,28.729999999999997))
walking = ((2.0268748592448014,16.147000000000002),(6.831476025788822,12.669),(5.457664119756744,12.812999999999999))
staying = ((9.973310858266611,13.972),(8.962488129154796,12.813),(8.504398826979472,14.432))
running = ((2.8987123028039465,34.238),(3.1576390575661892,39.217),(1.9150973507819982,38.891999999999996))