The spline function has no sharp peaks. On multiple zero slope points, the highest one is used.