<commit_before># node-pedometer
Pedometer implementation for node.js

#Notes
    Uses windowed average peak counting algorithm step detection.<commit_msg>Added details<commit_after># node-pedometer
Pedometer implementation for node.js

#Notes
    Uses windowed average peak counting algorithm step detection.
    
    Assumes all input data to be 2D arrays

    [[x1, y1, z1], [x2, y2, z2],...]
    [[pitch1, roll1, yaw1]. [pitch2, roll2, yaw2],... ] (in Radians)


# Installation
    npm install pedometer --save

# Usage
    var pedometer = require('../').pedometer;

    var steps=pedometer(accelerometerData,attitudeData,100);

# Test
    npm test

Returns:

  Detect steps in acceleration signal
    ✓ Signal of long walk (186ms)
    ✓ Signal of random movement (577ms)


  2 passing (772ms)


{'fraction_non_alphanumeric': 0.09774436090225563, 'fraction_numerical': 0.03258145363408521, 'mean_word_length': 3.4887640449438204, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1904089', 'n_tokens_mistral': 274, 'n_tokens_neox': 253, 'n_words': 87}