Add docstring to get_out_for_density method.