create doc for logPosteriorWrapper