#PDKIT
Example how to use pdkit to calculate Tremor amplitude and frequency:
>>> import pdkit >>> tp = pdkit.TremorProcessor() >>> ts = pdkit.TremorTimeSeries().load(filename) >>> amplitude, frequency = tp.process(ts)where, filename is the data path to load, by default in the cloudUPDRS format.
PDKit can also read data in the MPower format, just like:
>>> ts = pdkit.TremorTimeSeries().load(filename, 'mpower')where, filename is the data path to load in mpower format.
To calculate Welch, as a robust alternative to using Fast Fourier Transform, use like:
>>> amplitude, frequency = tp.process(ts, 'welch')
Example how to use pdkit to calculate various Gait features:
>>> import pdkit >>> ts = pdkit.GaitTimeSeries().load(filename) >>> gp = pdkit.GaitProcessor() >>> freeze_times, freeze_indexes, locomotion_freezes = gp.freeze_of_gait(ts) >>> frequency_of_peaks = gp.frequency_of_peaks(ts) >>> speed_of_gait = gp.speed_of_gait(ts) >>> step_regularity, stride_regularity, walk_symmetry = gp.walk_regularity_symmetry(ts)where, filename is the data path to load, by default in the cloudUPDRS format.
Metadata
Release files for pdkit 0.3.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pdkit-0.3.6.tar.gz | 17.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pdkit-0.3.6-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 41.2 kB
Release files / pdkit-0.3.6.tar.gz
| Download URL | pdkit-0.3.6.tar.gz |
|---|---|
| Size | 17.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
83b81b2df7ceacaea01e0d4231ddc50ad29cb7b14469af1e9a7964ff1b091662
|
|
BLAKE2b-256 checksum How to use checksums |
35beefd47a489a60605dc4e19dc744d9ca286a1d696ca8699ba6026ba5e842de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pdkit-0.3.6-py2.py3-none-any.whl
| Download URL | pdkit-0.3.6-py2.py3-none-any.whl |
|---|---|
| Size | 24.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
f4a5f4302c5ae1322808e4e8c44b5c2beb73a61427b6d4e0575f3536acc7f497
|
|
BLAKE2b-256 checksum How to use checksums |
43f7a239a0d00259fdf1198a0b6d81fc4f2c76f12f3efd2894d241f4c49b54c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |