Skip to main content
. 2023 Mar 10;25(3):485. doi: 10.3390/e25030485
Algorithm 2 PDPM
Require: The personalized privacy parameters (τi,ϵi), the range length of τi is Li=|τi|, the midpoint of τi is ci, and the client’s input value wiτi.
Ensure: The value after perturbation w˜i.
  •  1:

    if  ci0  then

  •  2:

       Translating ci to point 0 so that τi is symmetric about point 0;

  •  3:

       vi=wici;

  •  4:

    else

  •  5:

       vi=wi.

  •  6:

    end if

  •  7:

    Sampling a random variable a such that

  •  8:

          Pr[a=Li/2]=vi(eϵi1)Li(eϵi+2)+eϵi+12(eϵi+2);

  •  9:

    if  a=Li/2  then

  •  10:

       v˜i=Li(eϵi+3)2(eϵi1);

  •  11:

    else if  a=Li/2 then

  •  12:

       v˜i=Li(eϵi+1)eϵi1;

  •  13:

    else

  •  14:

       v˜i=0;

  •  15:

    end if

  •  16:

    w˜i=v˜i+ci;

  •  17:

    return w˜i.