Auto Generated Documentation¶
-
class
tremor_processor.
TremorProcessor
¶ Tremor Processor Class
-
fft_signal
(window=256)¶ FFT signal. Perform fft on the signal using a hanning window
Parameters: window (str) – hanning window size
-
filter_signal
(cutoff_frequency=2.0, filter_order=2)¶ Filter signal. High pass filter the signal as per [1] [1] Developing a tool for remote digital assessment of Parkinson s disease Kassavetis P, Saifee TA, Roussos G, Drougas L, Kojovic M, Rothwell JC, Edwards MJ, Bhatia KP
Parameters: - filename (str) – The path to load data from
- formatfile (str) – format of the file. Default is CloudUPDRS. Set to mpower for mpower data.
-
load_cloudupdrs_data
(filename)¶ Load CloudUPDRS data
Parameters: filename (str) – The path to load data from
-
load_data
(filename, formatfile='cloudupdrs')¶ General method to load data with different format file
Parameters: - filename (str) – The path to load data from
- formatfile (str) – format of the file. Default is CloudUPDRS. Set to mpower for mpower data.
-
load_mpower_data
(filename)¶ Load MPower data
Parameters: filename (str) – The path to load data from
-
process
(method='fft')¶ Process method.
Parameters: method (str) – fft or welch.
-
resample_signal
(sampling_frequency=100.0)¶ Resample signal We need to resample the signal as it is recorded with variable sampling rate
Parameters: - filename (str) – The path to load data from
- formatfile (str) – format of the file. Default is CloudUPDRS. Set to mpower for mpower data.
-
tremor_amplitude
(lower_frequency=2.0, upper_frequency=10.0)¶ Tremor Amplitude. Extract the fft components and sum the ones from lower to upper freq as per [1] [1] Developing a tool for remote digital assessment of Parkinson s disease Kassavetis P, Saifee TA, Roussos G, Drougas L, Kojovic M, Rothwell JC, Edwards MJ, Bhatia KP
Parameters: - lower_frequency (str) – LOWER_FREQUENCY_TREMOR
- upper_frequency (str) – UPPER_FREQUENCY_TREMOR
-
tremor_amplitude_by_welch
(window=256, lower_frequency=2.0, upper_frequency=10.0)¶ Welch Amplitude. Use the Welch method [3] to obtain the power spectral density, this is a robust alternative to using fft_signal & calc_tremor_amplitude [3] The use of the fast Fourier transform for the estimation of power spectra: A method based on time averaging over short, modified periodograms (IEEE Trans. Audio Electroacoust. vol. 15, pp. 70-73, 1967) P. Welch
Parameters: - lower_frequency (str) – LOWER_FREQUENCY_TREMOR
- upper_frequency (str) – UPPER_FREQUENCY_TREMOR
-