-
Notifications
You must be signed in to change notification settings - Fork 6
/
conTPL1.m
21 lines (20 loc) · 848 Bytes
/
conTPL1.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
%=========================================
% Method 1 for calculating appropriate privacy budgets (eps) to against a
% given level of TPL.
% This method needs to know T in advance.
% This function runs before starting to release data; the goal is to control TPL at t<=T.
% 2018/08/24 author: Yang Cao
%-----------------inputs-----------------
% TM_B: backward transition matrix
% TM_F: forward transition matrix
% tpl_goal: a desired level of TPL
% T: end of the timeline
%-----------------outputs------------------------
% epsArr: double array with T elements.
% the privacy budgets at each t from 1 to T.
%================================================
function [epsArr]=conTPL1(TM_B, TM_F, tpl_goal,T)
[e_s, e_mid, e_end]=allocEspByQuantify(tpl_goal, TM_B, TM_F);
eArr_mid=ones(1, T-2)*e_mid;
epsArr=[e_s, eArr_mid, e_end];
end