Cadence detection for accelerometer data. Available in RxJS and Bacon.js flavors.
npm install quickcadence



Cadence detection for event-driven accelerometer data
``js
var QuickCadence = require('quickcadence')
// On a Node streams2 stream, or BaconJS Observable stream.
// Returns a BaconJS Observable.
//
// The stream must be object that matches the schema:
// {x:
var cadenceStream = QuickCadence.pipe(stream);
cadenceStream.onValue(function(val) { console.log(val) });
// Values emitted are integers of the current cadence calculation.
// 93.2288.11
// 79.25
// ...`
Power is matched off of the y acceleration axis, which works well for
wrist-mounted accelerometers (watches). Further work can be done to
generalize this algorithm to all-axes calculations.
Put CSV dump of files with other csv files in the samples directory.
Start the dev server to load the data harness:
$ npm start
$ open http://localhost:8080/reference/index.html
$ npm run build
Assets are generated into the builds/` directory.