start implementation of class based simulation of a IM/DD communication system. Mostly based on Move-It but cleaned up and with focus on direct detection, however I try to keep the versatility of move-it alive.
53 lines
1.1 KiB
Plaintext
53 lines
1.1 KiB
Plaintext
classdef Fiber
|
|
%FIBER Summary of this class goes here
|
|
% Detailed explanation goes here
|
|
|
|
properties
|
|
fiber_length
|
|
alpha
|
|
D
|
|
Dslope
|
|
lambda0
|
|
gamma
|
|
dphimax
|
|
end
|
|
|
|
methods
|
|
function obj = Fiber(options)
|
|
%FIBER Construct an instance of this class
|
|
% Detailed explanation goes here
|
|
arguments
|
|
options.fiber_length = 0
|
|
options.alpha = 0.2
|
|
options.D = 17
|
|
options.Dslope = 0.06
|
|
options.lambda0 = 1550
|
|
options.gamma = 0.0013
|
|
options.dphimax = 5e-3
|
|
end
|
|
|
|
obj.fiber_length
|
|
obj.alpha
|
|
obj.D
|
|
Dslope
|
|
lambda0
|
|
gamma
|
|
dphimax
|
|
|
|
|
|
end
|
|
|
|
function opt_out = process(obj,opt_in)
|
|
%METHOD1 Summary of this method goes here
|
|
% Detailed explanation goes here
|
|
|
|
%attenuate nase
|
|
|
|
|
|
|
|
|
|
end
|
|
end
|
|
end
|
|
|