Skip to main content
. 2019 May 10;19(9):2174. doi: 10.3390/s19092174
Algorithm 1 Spectrum sensing algorithm with multi-resolution singular spectral entropy
Input: Network parameters, decision threshold (Pf) and sampled data y[n]
Output: The state of the channel perceived by the spectrum sensing algorithm (Cs)
1: Initialization, parameter setting: γ,m,L,J
2: for ally[n]Rdo
3:    calculate wavelet packet coefficients: SJ,i, i = 1, 2, …, 2J
4:    for all i2J do
5:       calculate the singular spectral entropy: hi
6:    end for
7:    for all 2i2J do
8:       di=hihi1
9:    end for
10:    D=i=22Jdi
11:    if Dγ then
12:       return: CsH1
13:    Else
14:       return: CsH0
15:    end if
16: end for