Quality Assessment¶
-
class
QualityAssessment.
BitErrorRatio
(constellation)[source]¶ Computes bit error ratios.
-
class
QualityAssessment.
ConstellationDiagram
(constellation)[source]¶ Plots a constellation diagram.
-
class
QualityAssessment.
ErrorVectorMagnitude
[source]¶ Computes error vector magnitudes.
-
class
QualityAssessment.
ModulationEfficiency
(percentage=99)[source]¶ Estimates modulation efficiency.
-
compute
(t, q_tx, q_rx, nerr, nbits)[source]¶ Estimates the modulation efficiency in bits/s/Hz.
The estimated modulation efficiency is computed as nbits/duration/bandwidth, where
- nbits is the number of transmitted bits,
- duration is t[-1]-t[0], and
- the bandwidth is the width of the frequency interval [-f,f] that contains the percentage of the total signal energy specified during construction.
Parameters: - t (numpy.array(float)) – Vector of time points in s.
- q_tx (numpy.array(complex)) – Vector containing the value of the fiber input at the time points specified at the time points in t.
- q_rx (numpy.array(complex)) – Vector containing the value of the fiber output at the time points specified at the time points in t.
- nerr (int) – Number of bit errors observed after the transmission.
- nbits (int) – Number of bits transmitted.
Returns: - float – The modulation efficiency in bits/s/Hz.
- float – The gross bit rate in bits/s.
- float – The percent bandwidth in Hz.
-