1.0.6 • Published 8 years ago

quickcadence v1.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

quickcadence

Accelerometer sample graphs

Circle CI Code Climate

Cadence detection for event-driven accelerometer data

Usage

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: <xAccelValue>, y: <yAccelValue>, z: <zAccelValue>}
var cadenceStream = QuickCadence.pipe(stream);
cadenceStream.onValue(function(val) { console.log(val) });

// Values emitted are integers of the current cadence calculation.
// `93.22`
// `88.11`
// `79.25` ...

Limitations

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.

Data harness for your accelerometer data

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

Build

$ npm run build

Assets are generated into the builds/ directory.

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.2.0

8 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago