Averages the samples prior to applying weights