This project has been archived by its maintainers, and is no longer receiving any updates.
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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file labda_accelerometers-0.1.2.tar.gz.
File metadata
- Download URL: labda_accelerometers-0.1.2.tar.gz
- Upload date:
- Size: 6.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.6.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3dea6349f6044f52332184a2125d2a19b3014a727d6b4b9ef4cd0fee7b03c2f7
|
|
| MD5 |
9a8d9f1371f0b8aa0e59bee136218698
|
|
| BLAKE2b-256 |
52459c6fbaf3ef1976e0ac36fed5befffdeeda768e56893204b0d3072099d22b
|
File details
Details for the file labda_accelerometers-0.1.2-py3-none-any.whl.
File metadata
- Download URL: labda_accelerometers-0.1.2-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.6.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8171b132bd61cbbf586aba43759af555fc54e86eb2d6c63c830980178251d6f3
|
|
| MD5 |
929cf84a3271b5bdf946f9bdbb0716aa
|
|
| BLAKE2b-256 |
5e1032210e24e9eab89980d63e05cb998d5f36947079a399ddbbd6199c05e5a5
|