torchsig.transforms.functional.clock_drift¶
- torchsig.transforms.functional.clock_drift(data: ndarray, drift_ppm: float = 10, rng: Generator | None = None) ndarray[source]¶
Clock drift from a Local Oscillator (LO), modeled as accumulated gaussian random noise impacting the sampling rate.
The drift applies a randomness to the sampling rate, and by accumulating the gaussian RV over time it will slightly increase or decrease the sampling rate of the data, and thereby changing the number of samples by a very small number.
- Parameters:
data – Complex valued IQ data samples.
drift_ppm – Clock drift in parts per million (ppm). Default 10.
rng – Random number generator. Defaults to np.random.default_rng(seed=None).
- Returns:
Data with LO drift applied.