Elementary.Log Sum Exp 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#
The logarithm of the sum of exponentials of the elements of values.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.7.0
public static double LogSumExp(
Vector<double> values
)Parameters
Return Value
DoubleThe 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
| Argument | values is null. |