This is a C++ implementation of the Empirical Bernstein stopping algorithm (in particular EBGstop, a faster version of it).
Mnih, Volodymyr & Szepesvári, Csaba & Audibert, Jean-Yves. (2008). Empirical Bernstein stopping
Make sure that your C++ compiler supports OpenMP
N_THREADS defines how many parallel simulation of your random variable to run.
Modify the simulate_model() function with the random variable you want to estimate, then open a terminal inside the project directory and write
make
to compile and run the code.