This is part of the analysis module |
This action takes the exponential of a vector of logarithms and divides each element of the vector by the sum of the exponentials.
The log-exp-sum trick is used here
ARG | the vector of logweights that you would like to normalise using the logsumexp trick |