Conform to Sampler interface in hp.models