double logSum

(double* a, int N)

Calculates the logarithm of the sum of the probabilities whose logarithms are stored in the given array

Documentation

Calculates the logarithm of the sum of the probabilities whose logarithms are stored in the given array
Parameters:
a - : array of logarithms of probabilities (a[i] < 0 for all i)
N - : length of a
Returns:
log of sum of exp(a[i])

Alphabetic index



This page was generated with the help of DOC++.