Introduction - If you have any usage issues, please Google them yourself
This code is to plot receiver operating characteristic curve for simple energy detection, when the primary signal is real Gaussian signal and noise is additive white real Gaussian. Here, the threshold is available analytically.