Skip to main content
. 2021 Nov 29;21(23):7981. doi: 10.3390/s21237981
Algorithm 2. Noise analysis and reduction using OCNMF
Input: Spectrogram of an input signal Y, priori basis number R, an undesired basis number J, type of β-divergence β,
   number of iterations in OCNMF iOCNMF, shift length of CNMF K, signal basis matrix Hτ,
   weight parameter μ, phase matrix of the input signal Yp
Output: Noise reduced signal Ycl
1:  Initialize Fτ, U, and G with random non-negative values
2:  Normalize columns of Fτ
3:  for i = 1, ⋯, iOCNMF do
4:   for τ = 0, ⋯, R − 1 do
5:    Compute Z
6:    Update Fτ, U, and G using Equations (15), (16) and (23)
7:    Normalize columns of Fτ
8:   end for
9:  end for
10:  Compute M using Equation (19) and Ycl = Y ⨀ M
11:  ISTFT (Ycl ⨀ Yp)