posterior_bySufficientStatistics.CatDirichlet {bbricks}R Documentation

Update a "CatDirichlet" object with sample sufficient statistics

Description

Update a "CatDirichlet" object with sample sufficient statistics

Usage

## S3 method for class 'CatDirichlet'
posterior_bySufficientStatistics(obj, ss, ...)

Arguments

obj

A "CatDirichlet" object.

ss

Sufficient statistics of x. In Categorical-Dirichlet case the sufficient statistic of sample x can be either x itself, of an "ssCat" object generated by the function sufficientStatistics.CatDirichlet().

...

Additional arguments to be passed to other inherited types.

Value

None. the gamma stored in "obj" will be updated based on "ss".

References

Murphy, Kevin P. Machine learning: a probabilistic perspective. MIT press, 2012.


[Package bbricks version 0.1.4 Index]