-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlightSim.m
More file actions
40 lines (37 loc) · 1.04 KB
/
lightSim.m
File metadata and controls
40 lines (37 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
classdef lightSim
% simulation properties
properties
% starting wavelenght in [nm]
minWave
% ending wavelnght in [nm]
maxWave
% simulation steps
steps
% maximum luminous efficacy photopic
KmPhot = 683.002;
% maximum luminous efficacy scotopic
KmScot = 1699;
end
properties (Dependent)
% V-lambda curve photopic
VPhot
% V-lambda curve scotopic
VScot
end
methods
function vPhot = get.VPhot(obj)
[ ~, vPhot ] = gauss_distribution2( 1 , 555 , 80 , obj.minWave , obj.maxWave, obj.steps );
end
function vScot = get.VScot(obj)
[ ~, vScot ] = gauss_distribution2( 1 , 507 , 80 , obj.minWave , obj.maxWave, obj.steps );
end
end
methods (Static)
% simulation constructor
function obj = lightSim(minWave, maxWave, steps)
obj.minWave = minWave;
obj.maxWave = maxWave;
obj.steps = steps;
end
end
end