N-fold smoothed function