Estimation of a non-negative function