samplers function

A virtual function to use as a contains argument when writing APT samplers