static sdr.ReplicaCorrelator.threshold(p_fa: ArrayLike, energy: ArrayLike, sigma2: ArrayLike, complex: bool = True) NDArray[float64]

Computes the threshold \(\gamma'\).

Parameters:
p_fa: ArrayLike

The probability of false alarm \(P_{fa}\).

energy: ArrayLike

The received energy \(\mathcal{E} = \sum_{i=0}^{N-1} \left| s[n] \right|^2\).

sigma2: ArrayLike

The noise variance \(\sigma^2\).

complex: bool = True

Indicates whether the signal is complex.

Returns:

The threshold \(\gamma'\).

Notes

For real signals:

\[\gamma' = \sqrt{\sigma^2 \mathcal{E}} Q^{-1}(P_{fa})\]

For complex signals:

\[\gamma' = \sqrt{\sigma^2 \mathcal{E} / 2} Q^{-1}(P_{fa})\]

References

  • Steven Kay, Fundamentals of Statistical Signal Processing: Detection Theory, Equations 4.12 and 13.6.