PDKIT
TREMOR PROCESSOR
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')
BRADYKINESIA
>>> import pdkit >>> ts = pdkit.TremorTimeSeries().load(filename) >>> tp = pdkit.TremorProcessor(lower_frequency=0.0, upper_frequency=4.0) >>> amplitude, frequency = tp.bradykinesia(ts)
GAIT
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.
FINGER TAPPING
Example how to use pdkit to calculate the mean alternate distance of the finger tapping tests:
>>> import pdkit >>> ts = pdkit.FingerTappingTimeSeries().load(filename, 'ft_cloudupdrs') >>> ftp = pdkit.FingerTappingProcessor() >>> ftp.mean_alnt_target_distance(ts)
kinesia scores (the number of key taps)
>>> ftp.kinesia_scores(ts)
Metadata
Release files for pdkit 0.4
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.4.tar.gz | 19.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pdkit-0.4-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 44.7 kB
Release files / pdkit-0.4.tar.gz
| Download URL | pdkit-0.4.tar.gz |
|---|---|
| Size | 19.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e77f2193b5caae80086cb8c9aba01241586ea2ab2aa2c7a521f9587d23458ad2
|
|
BLAKE2b-256 checksum How to use checksums |
e310ad808765efc4c23b8f117c7bdb5562f718dee8f4e2d7cc82e040ab7945c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pdkit-0.4-py2.py3-none-any.whl
| Download URL | pdkit-0.4-py2.py3-none-any.whl |
|---|---|
| Size | 25.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
a6b6f74a7e87a0480fe0c732c3f7506b99cbae249df70238596c80fddc092117
|
|
BLAKE2b-256 checksum How to use checksums |
e216bec5ac8297a0189e36c716137e354b2c5d6a21b453057290033897e8dc7e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |