extract_parameters function

Extract samples from all parameters