Measurement¶
Energy¶
- sdr.energy(x: ArrayLike, ...) NDArray[float64]
Measures the energy of a time-domain signal \(x[n]\).
Power¶
-
sdr.power(x: ArrayLike, db: bool =
False
) float Measures the instantaneous power of a time-domain signal \(x[n]\).
- sdr.peak_power(x: ArrayLike, ...) float
Measures the peak power of a time-domain signal \(x[n]\).
- sdr.average_power(x: ArrayLike, ...) float
Measures the average power of a time-domain signal \(x[n]\).
- sdr.papr(x: ArrayLike, ...) float
Measures the peak-to-average power ratio (PAPR) of a time-domain signal \(x[n]\).
Voltage¶
-
sdr.peak_voltage(x: ArrayLike, db: bool =
False
) float Measures the peak voltage of a time-domain signal \(x[n]\).
-
sdr.rms_voltage(x: ArrayLike, db: bool =
False
) float Measures the root-mean-square (RMS) voltage of a time-domain signal \(x[n]\).
- sdr.crest_factor(x: ArrayLike) float
Measures the crest factor of a time-domain signal \(x[n]\).
Distance¶
- sdr.euclidean(x: ArrayLike, y: ArrayLike, ...) NDArray[float64]
Measures the Euclidean distance between two signals \(x[n]\) and \(y[n]\).
- sdr.hamming(x: NDArray[int_], y, ...) NDArray[int_]
Measures the Hamming distance between two signals \(x[n]\) and \(y[n]\).
Modulation¶
- class sdr.ErrorRate
A class for measuring bit error rates (BER) or symbol error rates (SER).
- sdr.evm(x_hat: ArrayLike, ref: ArrayLike, ...) float
Measures the error-vector magnitude (EVM) of the complex symbols \(\hat{x}[k]\).
-
sdr.rms_bandwidth(x: ArrayLike, sample_rate: float =
1.0
) float Measures the RMS bandwidth \(B_{\text{rms}}\) of the signal \(x[n]\).
- sdr.rms_integration_time(x: ArrayLike, ...) float
Measures the RMS integration time \(T_{\text{rms}}\) of the signal \(x[n]\).