WeightedVarianceAccumulator<T>.Merge Method

Appends the observations represented by another accumulator to this accumulator.

Definition

Namespace: Numerics.NET.DataAnalysis.Accumulators
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.10.0
C#
public void Merge(
	 in WeightedVarianceAccumulator<T> other
)

Parameters

other  WeightedVarianceAccumulator<T>
The source accumulator, which is not modified.

Remarks

A reset or zero-weight-only accumulator is the empty identity. An invalid operand invalidates the result, including when the other operand is empty. Self-merging duplicates the observations. Missing observations remain ignored.

The result retains the population-weighted variance convention. Floating-point rounding, overflow and underflow may differ from sequential accumulation.

See Also