I have made a program that calculate the maximum of the correlation spectral density and compare it with a threshold.this algorithm use the approach of the FFT accumulation method (FAM).the threshold is extracted from the formula of the probability of detection. the problem is that I don't know how to calculate the probability of detection after comparing the threshold with the maximum of the CSD.did someone have an idea about it ?