Added examples to sampling function api docs