Skip to main content
. 2021 Feb 28;21(5):1661. doi: 10.3390/s21051661
Algorithm 1: CL-RNMF.
Require: x(t), Kr, Kw, α, β, λ, and M.ss
 1:  Compute the normalized magnitude spectrogram X using Equation (11).ss
 2:  Initialize BW, BR, AW, and AR with random non-negative values.ss
 3:  Update the estimated wheezing basis matrix BW using Equation (14).ss
 4:  Update the estimated respiratory basis matrix BR using Equation (15).ss
 5:  Update the estimated wheezing activations matrix AW using Equation (16).ss
 6:  Update the estimated respiratory activations matrix AR using Equation (17).ss
 7:  Repeat Steps 3–6 until the algorithm converges (or until the maximum number of iterations M is reached).ss
 8:  Compute the spectral energy distribution ξ(f) from BW using Equation (18).ss
return ξ(f)