Minor Changes here and there
This commit is contained in:
@@ -7,7 +7,7 @@ classdef Photodiode
|
||||
responsivity
|
||||
dark_current
|
||||
temperature
|
||||
|
||||
nep
|
||||
randomkey
|
||||
randomstream
|
||||
|
||||
@@ -22,6 +22,7 @@ classdef Photodiode
|
||||
options.responsivity = 1;
|
||||
options.dark_current = 0;
|
||||
options.temperature = 20;
|
||||
options.nep = 0; %(Moveit IMDD Standard: 1.8e-11) noise effective power in pA/sqrt(Hz); usually between 10-20 pA; see J.Leibrich Diss/ S. Pachnicke Slides
|
||||
options.randomkey = 1;
|
||||
end
|
||||
|
||||
@@ -71,11 +72,16 @@ classdef Photodiode
|
||||
yout = yout + shot_noise;
|
||||
|
||||
% Thermal Noise
|
||||
therm_current_psd = (2 * k * T / R ) ; %squared
|
||||
therm_current_psd = 1.8e-11^2;
|
||||
% NEP is noise equivalent power, see Dissertation j. Leibrich
|
||||
% P. 121 or Stephan Pachnicke Optical Comm. Lecture Slides
|
||||
if obj.nep == 0
|
||||
nep_squared = (2 * k * T / R ) ; %squared
|
||||
else
|
||||
nep_squared = obj.nep^2;
|
||||
end
|
||||
|
||||
Bw = obj.fsimu;
|
||||
therm_noise_pow = therm_current_psd * Bw; %squared
|
||||
therm_noise_pow = nep_squared * Bw; %squared
|
||||
|
||||
therm_noise = sqrt(therm_noise_pow) .* randn(obj.randomstream,size(yout,1),1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user