-
Notifications
You must be signed in to change notification settings - Fork 5
/
tst_conv.m
54 lines (46 loc) · 891 Bytes
/
tst_conv.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
%%
clear
clc
close all
l1 = 2.5;
l2 = 1.1;
sig = 100;
rat1 = [];
rat2 = [];
rat3 = [];
for t = 3 : 100
num1 = l2^(2*t) + sig^2 * ((l2^(2*(t-1)) - 1)/ (l2^2 - 1));
den1 = l1^(2*t) + sig^2 * ((l1^(2*(t-1)) - 1)/ (l1^2 - 1));
rat1 = [rat1, num1 / den1];
num2 = l2^(2*t);
den2 = l1^(2*t);
rat2 = [rat2, num2 * (1+sig^2) / den2];
rat3 = [rat3, 1/den2];
end
% l1 = 1.5;
% l2 = 1.1;
% sig = 1;
% t = 11;
% num = l2^(2*t) + sig^2 * ((l2^(2*(t-1)) - 1)/ (l2^2 - 1));
% den = l1^(2*t) + sig^2 * ((l1^(2*(t-1)) - 1)/ (l1^2 - 1));
figure;
semilogy(rat1, 'rs')
hold
semilogy(rat2 , 'kd')
semilogy(rat3, 'bo')
legend('sigma2/sigma1', '(l1/l2)^t (1+t)', '(1/l1)^t')
%%
%
% clear
% clc
% close all
% rat = linspace(1.1, 100, 1000);
%
% ours = 1 ./ log(rat);
% theirs = rat ./ (rat-1);
%
% figure;
% plot(ours, 'rd');
% hold
% plot(theirs, 'ks');
% axis tight