Closed meta00 closed 3 years ago
Function calculate_Spectrum takes input is the rr_intervals. The function converts to beat-per-minute unit and computes the power density or spectral power value (controlled by argument power_type). Power computes using either Welch, Lomb, or Periodogram. If Spectrogram is defined, the output of power is a 2d n x m array, n: times; m: frequencies.
Output: an array of frequencies, an array of relevant power
[x] function to calculate power in a specific range. Input is an array of powers, an array of relevant frequencies and the boundary of the max and min frequency.
[x] function to calculate PSD using wavelet input: raw signal output: power as list
@meta00 Review branch to merge with main
Fixed the computation by using RR interval as the input and merged pull request #36
in common/power_spectrum.py
function to calculate PSD using Welch, Lomb, AR method (Check interpolation, if using Welch method. )
function to calculate PSD using wavelet input: raw signal output: power as list
function to calculate power in a specific range.