comnum.schmidl_cox#

comnum.schmidl_cox(r, half)#

The timing metric of Schmidl & Cox, |P(d)|²/R(d)².

Parameters:
  • r (array_like) – the received samples.

  • half (int) – the length of a half of the preamble (samples).

Returns:

the metric at every delay (float64).

Return type:

numpy.ndarray

Raises:

ValueError – for an input that is not an array of numbers of the expected shape.