logspace_sum_matrix_rows | R Documentation |
Calculate logspace summation of matrix rows in a somewhat numerically stable way.
logspace_sum_matrix_rows(logX)
logX |
log-scale numeric matrix of values to sum. |
log(apply(exp(logX), 1, sum)), but more numerically stable
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.