Skip to main content

A package designed to process data from movement sensors – accelerometers.

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

LABDA Accelerometers

A package designed to process data from movement sensors – accelerometers.

  • Auto-calibration
  • Non-wear detection
  • Metrics: Counts, ENMO
  • Python

See documentation for more details.

Installation

Install using pip install labda-accelerometers.

A Simple Example

import pandas as pd
from labda_accelerometers import Metrics, AutoCalibrate, WearDetection

df = AutoCalibrate().calibrate(df)
print(df)
#>                                         acc_x     acc_y     acc_z
#> datetime  
#> 2021-09-09 00:00:07.009999990+02:00 -0.099318 -0.128671  0.995101
#> 2021-09-09 00:00:07.019999981+02:00  0.076385 -0.267248  0.995101
#> 2021-09-09 00:00:07.029999971+02:00  0.092358 -0.267248  0.927356

epoch = 1 # In seconds

acc_wear = WearDetection(epoch=epoch).from_acceleration(df)
metrics = Metrics(epoch=epoch)

enmo = metrics.enmo(df)
counts = metrics.counts(df)

results = pd.concat([acc_wear, enmo, counts], axis=1)
print(results)
#>                             wear      enmo  counts_x  counts_y  counts_z  counts_vm
#> datetime  
#> 2021-09-09 00:00:07+02:00  False  0.022882         0         5        51  51.244511  
#> 2021-09-09 00:00:08+02:00  False  0.024908         0         0         6   6.000000  
#> 2021-09-09 00:00:09+02:00  False  0.014403         0         0         0   0.000000  

Detailed information on labda-accelerometers processing and features is available here.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

labda_accelerometers-0.1.0.tar.gz (6.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

labda_accelerometers-0.1.0-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file labda_accelerometers-0.1.0.tar.gz.

File metadata

File hashes

Hashes for labda_accelerometers-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c3fe3e976c10f303e854f26ccfa40ad5d3d40c7aacdbc1c01eac2a20b434022e
MD5 43db12c50bba72e94bc654c761aa3e19
BLAKE2b-256 12344d64c0703ac4ad3e78e37294ba98a30e48f350646fdb60da1b3af8bea13a

See more details on using hashes here.

File details

Details for the file labda_accelerometers-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for labda_accelerometers-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 82f128c800640b6b4db440ba9564e66e4a9fe4635489c279ffc0bb7c691a2818
MD5 3b2ddb44add91d5cb7367a29e3d2f785
BLAKE2b-256 876854c8fdcc4c2871f28616ae7ccdf8c350c3a09b79a473af802c478b82e30e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page