Parkinson`s Disease Kit
Project description
#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 Tremor amplitude and frequency:
>>> 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pdkit-0.2.18.tar.gz
(16.9 kB
view hashes)
Built Distribution
pdkit-0.2.18-py2.py3-none-any.whl
(22.2 kB
view hashes)
Close
Hashes for pdkit-0.2.18-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67b36c1dd779ebcf44030ee15a194ff344e922d2f30605b1897b74179d8b7011 |
|
MD5 | 04dc3367dc626d842af0f80d38bea1a9 |
|
BLAKE2b-256 | a2fffafb4015392b8527caa7479b66a0349e110285a3419aadadc2217b5974e4 |