extract_parameters_by_distribution function

Helper function to extract parameters based on distribution type