Elementary.LogSumExp Method

Computes the logarithm of the sum of exponentials.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.7.0
C#
public static double LogSumExp(
	Vector<double> values
)

Parameters

values  Vector<Double>
The vector of values.

Return Value

Double
The logarithm of the sum of exponentials of the elements of values.

Remarks

This method delegates to the vector LogSumExp<T>(Vector<T>) implementation.

For an empty vector, this method returns NegativeInfinity. Missing-aware vectors skip missing values, so an all-missing vector returns the same value.

Exceptions

ArgumentNullException

values is null.

See Also