doc Sampler constructor