|
Algorithm 1 Spectrum sensing algorithm with multi-resolution singular spectral entropy |
|
Input: Network parameters, decision threshold () and sampled data
|
|
Output: The state of the channel perceived by the spectrum sensing algorithm () |
| 1: |
Initialization, parameter setting:
|
| 2: |
for alldo
|
| 3: |
calculate wavelet packet coefficients: , i = 1, 2, …, 2J
|
| 4: |
for all
do
|
| 5: |
calculate the singular spectral entropy:
|
| 6: |
end for
|
| 7: |
for all
do
|
| 8: |
|
| 9: |
end for
|
| 10: |
|
| 11: |
if
then
|
| 12: |
return:
|
| 13: |
Else
|
| 14: |
return:
|
| 15: |
end if
|
| 16: |
end for |