sdr.NCO.step(n: int, output: 'phase' | 'sine' | 'cosine' = 'complex-exp') ndarray[tuple[int, ...], dtype[float64]]
sdr.NCO.step(n: int, output: 'complex-exp' = 'complex-exp') ndarray[tuple[int, ...], dtype[complex128]]

Steps the NCO forward by \(N\) samples.

Parameters:
n: int

The number of samples \(N\) to step the NCO forward.

output: 'phase' | 'sine' | 'cosine' = 'complex-exp'
output: 'complex-exp' = 'complex-exp'

The format of the output signal \(y[n]\). Options are the accumulated phase, sine, cosine, or complex exponential.

Returns:

The output complex signal \(y[n]\).

Examples

See the Phase-locked loops example.