Update Block RIP

This commit is contained in:
Ksyer
2024-02-21 16:44:41 +08:00
parent f357a0c3a7
commit ae199edbcd
16 changed files with 164 additions and 169 deletions
+25
View File
@@ -0,0 +1,25 @@
clc;
clear;
M = 50;
eps = 1e-5;
delta = 0.3;
C = 10.66;
nums = 10:0.1:50;
num = length(nums);
N = zeros(1, num);
upper_bound_C1 = zeros(1, num);
upper_bound_C2 = zeros(1, num);
for i = 1: length(nums)
N(i) = 10^nums(i);
upper_bound_C1(i) = get_our_ub(1, N(i), C, M, eps);
upper_bound_C2(i) = get_wl_ub(N(i), M, eps);
N(i) = nums(i);
end
semilogy(N, upper_bound_C1, 'r-', N, upper_bound_C2, 'b');
xlabel("log_{10}(N)");
ylabel("Upper bound of K");
title("Prob(\delta_K < 0.3) >= 1 - 10^{-5}")