added participation_coef function, for participation coefficient computation