Research Article

Adaptive Double-Threshold Cooperative Spectrum Sensing Algorithm Based on History Energy Detection

Algorithm 1

Adaptive double-threshold spectrum sensing algorithm of single node based on history energy detection.
Input:, Queue,
Output:
1: procedure SINGLE NODE ENERGY DETECTION
2:  Flag0
3:  Calculate ,,
4:  Queue ()
5: top:
6:  ifthen
7:   
8:  else
9:   ifthen
10:     
11:   else
12:     ifFlag = 0 then
13:      Calculate
14:     end if
15:     ifFlag = 0 then
16:      Flag1,
17:      gototop
18:     else
19:      Calculate
20:      ifthen
21:       
22:      else
23:       
24:      end if
25:     end if
26:    end if
27:  end if
28:  return
29: end procedure