Description Usage Arguments Details Value Author(s) See Also
Sum up the rows in log space.
1 | gRowLogSums(x, startCol=1, endCol=ncol(x))
|
x |
A matrix |
startCol |
May be used to perform the log sum on only selected columns |
endCol |
May be used to perform the log sum on only selected columns |
Calculates for each row vector v
the value log(sum(exp(v)))
in a way that avoids overflow. This function may be useful for mixture models. This function is only efficient for a large number of rows and a smaller number of columns.
Returns a vector with a value for each row.
Nathan Morris
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.