Sampling and filtering with Markov chains | Synapse