implement func

gm_phd_calc_perf()