static sdr.EnergyDetector.threshold(N_nc: ArrayLike, p_fa: ArrayLike, sigma2: ArrayLike, complex: bool = True) NDArray[float_]

Computes the threshold γ.

Parameters:
N_nc: ArrayLike

The number of samples NNC to non-coherently integrate.

p_fa: ArrayLike

The probability of false alarm PFA.

sigma2: ArrayLike

The noise variance σ2.

complex: bool = True

Indicates whether the signal is complex.

Returns:

The threshold γ.

Notes

For real signals:

γ=σ2QχN21(PFA)

For complex signals:

γ=σ22QχN21(PFA)

References

  • Steven Kay, Fundamentals of Statistical Signal Processing: Detection Theory, Equation 5.2.