extract_samples function

Extract relevant samples from the list for conditional dist calc