Log Sum Exp Accumulator<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#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.10.0
public void Merge(
in LogSumExpAccumulator<T> other
)Parameters
- other LogSumExpAccumulator<T>
- The source accumulator, which is not modified.
Remarks
A reset accumulator is the empty identity. NaN propagates; otherwise positive infinity dominates, and negative infinity contributes zero to the exponential sum. Self-merging duplicates the observations. Missing observations remain ignored.
Finite sums are combined after scaling to a common maximum. Floating-point rounding, overflow and underflow may differ from sequential accumulation.
Exceptions
| Overflow | The combined count exceeds MaxValue. |