Deal with the case when all weights are 0.
Pete says this is the appropriate value for h.