Skip to content

Commit

Permalink
Clean up equations
Browse files Browse the repository at this point in the history
  • Loading branch information
mhostetter committed Jun 1, 2024
1 parent e508abe commit ed2d694
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/sdr/_simulation/_impairment.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def sample_rate_offset(
Arguments:
x: The time-domain signal $x[n]$ to which the sample rate offset is applied.
offset: The sample rate offset $\Delta f_s = f_{s,new} - f_{s_old}$ in samples/s.
offset: The sample rate offset $\Delta f_s = f_{s,\text{new}} - f_{s,\text{old}}$ in samples/s.
sample_rate: The sample rate $f_s$ in samples/s.
Returns:
Expand Down Expand Up @@ -274,8 +274,8 @@ def frequency_offset(
Arguments:
x: The time-domain signal $x[n]$ to which the frequency offset is applied.
offset: The frequency offset $\Delta f_c = f_{c,new} - f_{c,old}$ in Hz.
offset_rate: The frequency offset rate $\Delta f_c / \Delta t}$ in Hz/s.
offset: The frequency offset $\Delta f_c = f_{c,\text{new}} - f_{c,\text{old}}$ in Hz.
offset_rate: The frequency offset rate $\Delta f_c / \Delta t$ in Hz/s.
phase: The phase offset $\phi$ in degrees.
sample_rate: The sample rate $f_s$ in samples/s.
Expand Down Expand Up @@ -309,7 +309,6 @@ def frequency_offset(
.. ipython:: python
freq = 1 / 100
freq_rate = 2 / 100**2
y = sdr.frequency_offset(x, freq, freq_rate)
Expand Down

0 comments on commit ed2d694

Please sign in to comment.