The code is written in Matlab. 
rej.m can generate samples using rejection sampling.
LMC.m generate samples using LMC with fixed step size.
proximal_new.m generate samples using proximal sampler (truncation method).

plotfil.m generate the plots. 