A toy example to sample in 1d to help mcmc algprithm