-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathjitter_std_ms.m
34 lines (32 loc) · 1.08 KB
/
jitter_std_ms.m
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
function jitter = jitter_std_ms(scenario, profile)
switch profile
case 'volkswagen'
switch scenario
case 'highway'
jitter = 3.235;
case 'suburban'
jitter = 3.814;
case 'urban'
jitter = 3.444;
case 'universal'
jitter = 3.553;
otherwise
error('''scenario'' parameter value is not valid. Try ''highway'', ''suburban'', ''urban'' or ''universal''');
end
case 'renault'
switch scenario
case 'highway'
jitter = 2.817;
case 'suburban'
jitter = 2.769;
case 'urban'
jitter = 2.711;
case 'universal'
jitter = 2.783;
otherwise
error('''scenario'' parameter value is not valid. Try ''highway'', ''suburban'', ''urban'' or ''universal''');
end
otherwise
error('''profile'' parameter value is not valid. Try ''volkswagen'' or ''renault''');
end
end