Description Usage Arguments Value
View source: R/msg_len_weighted_avg.R
This function calculates the weighted average over a vector of message lengths. It can either be uniform or non-uniform. It uses message lengths instead of probabilities to avoid computer under flow when dealing with extreme small probability multiplications.
1 | msg_len_weighted_avg(l, w)
|
l |
A vector of more than one message lengths. |
w |
A vector of weights, one for each model (structure). It can be a vector of uniform probabilities that indicates an uniform averaging over all models. |
The function outputs a weighted average message length in natural log.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.