ocbe-uio / TruncExpFam

R package to generate data related to the Truncated Exponential Family
https://ocbe-uio.github.io/TruncExpFam/
GNU General Public License v3.0
0 stars 1 forks source link

Merge averageT() methods #91

Closed wleoncio closed 2 years ago

wleoncio commented 2 years ago

Apparently all methods just do the same thing: average a vector (or columns of a matrix) of sufficient statistics. There may not be a need for a generic function with separate methods, then. Just have one function doing return(colMeans(sufficientT(y))) might do the trick.

Credit to @rho62 for the idea, BTW. :)

wleoncio commented 2 years ago

Fixed in commit 6b72a71