hmf and peak patch mass functions matching