Research Article

Ensemble Classifier Based Spectrum Sensing in Cognitive Radio Networks

Algorithm 1

Dataset generation algorithm.
1: Iterations = 250
2: SNR value from -5dB to -15dB
3: ModType = BPSK (It stores the modulation type. It can have one of the four values BPSK, QPSK, 16-QAM and 64-QAM).
4: Generate OFDM signal
(i) T = OFDM(ModType)
(ii) S = Power Adjustment(T, SNR value) + WGN
(iii) Assign Signal label
5: Generate Noise
(i) N = WGN
(ii) Assign Noise label
6: Dataset = concatenate(Dataset, S, N)
7: Update ModType
8: Until all ModTypes go to step 4
9: Update SNR value
10: Until all SNR values go to step 3
11: Iterations = Iterations - 1
12: Go to step 2 if iterations 0