create helper functions for variational bayesian LDS learning.