weightedAverage

Gets the weighted average of the collected observations.

Return

A double representing the weighted average or Double.NaN if no observations.