split_disc_cont_ps_qs function

Split ps and qs into those corresponding to discrete and continuous parts of a distribution.