GithubHelp home page GithubHelp logo

sensor-stats's Introduction

Sensor-Stats

A sensor stats calculation app.

Write an iOS app, in Objective C, that listens to the accelerometer sensor and GPS to do the followings:

  • Compute basic statistics from accelerometer data.
  • Log the distance the user has traveled in the last 3 minutes using GPS data. Assume the app will be in the foreground at all times.
  • Display the results on the app's user interface.
  • An appropriate level of unit testing: mainly around statistical feature calculations.

Goal

The goal of the exercise is to produce readable and correct code. The user interface does not have to be fancy. Make sure to think about the resource (CPU, Memory, Battery, Storage) limits and efficiency. Through comments will be much appreciated.

Requirements :-

Sensor:

  • The app should sample accelerometer at 20 Hz (every 50 ms).

The app should calculate the following features:

  • Descriptive statistics (max, median, mean, stdev, min, count) since the app start.
  • Number of zerocrossings (when a measured value switches from positive to negative and vice versa) since the app start.
  • The features should be calculated separately for the X, Y and Z direction of an accelerometer measurement.

GPS:

  • Assume that the app will be in the foreground at all times. Unit of measure is in meters. You can make it as accurate as you'd like. Bonus points for more accurate results.
  • The computed features should be made visible in the app. It is more important to have readable, working and correct code than it is to have a fancy UI.

sensor-stats's People

Contributors

shivanand217 avatar

Watchers

James Cloos 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.