Chapter 14: Performance measurement and monitering

Figure 14.10, Page Number: 529

In [6]:
import math
import matplotlib.pyplot as plt
import numpy as np
import scipy as sp
from scipy import special

%matplotlib inline

#variable declaration
sigma = 1                      #pulse width

fdB_optical = 0.187/sigma
fdB_electrical = 0.133/sigma

print "F_dB Optical =",fdB_optical
print "F_dB Electrical =",fdB_electrical

t = arange(-3.0, 3.0, 0.1) 
p = (1/(sigma*sqrt(2*pi)))*exp((-t**2)/(2*(sigma**2)))    
ylabel('Relative pulse amplitude P(t)')
xlabel('Time t')
title('Definations of pulse shape parameters')
text(-0.7,0.25,'RMS pulse width')
text(-1.0,0.20,'Full width half maximum')
text(-0.5,0.15,'1/e width')
F_dB Optical = 0.187
F_dB Electrical = 0.133
<matplotlib.text.Text at 0xa411898>