log_part_B_g: The first order gradient of log-partation function of...

Description Usage Arguments Value Examples

Description

This function define first order gradient of the log-partation function of Bernoulli distribution. The formula is log_part_B_g(Theta) = exp(Theta)/(1+exp(Theta)). Details can be found in https://arxiv.org/abs/1902.06241.

Usage

1
log_part_B_g(Theta)

Arguments

Theta

a matrix of natural parameter

Value

value of the first order gradient

Examples

1
## Not run: log_part_B_g(matrix(0:9,2,5))

YipengUva/RpESCA documentation built on July 2, 2019, 6:41 p.m.