Weighted `mean` gives wrong (conjugated) result for `complex` arrays: `mean([1 + 0.5im], weights([1])) == 1.0 - 0.5im`.
Weighted
meangives wrong (conjugated) result forcomplexarrays:mean([1 + 0.5im], weights([1])) == 1.0 - 0.5im.