Adding the option to input a distribution function as a table for the
matched_from_line_density function