the graph of the probability of detection versus the probability of false alarm.
I have implemented the algorithm of the energy detector in matlab and to plot the probability of detection in function of the probability of false alarm I have used the theoretical formulas: Probability_of_detection = qfunc(((thresh - (snr + 1)*nvar).*sqrt(L))./(nvar*(snr + 1)));
and probability of false alarm is a range from 0 to 1 and the step is 0.01
You will find attached the ROC curve for SNR = -10 db and snr = -8 db