[…] that the function requires computing a weighted mean, which is described in a previous …