Learn R Programming

ergmclust (version 1.0.0)

gamma_update_HMM_stat_dir: C++ function for updating the variable gamma (variational parameters) in a static binary directed network.

Description

The C++ function gamma_update_HMM_stat_dir() updates the value of variable gamma (variational parameters) in a static binary directed network.

Usage

gamma_update_HMM_stat_dir(gamma, pi, theta, network, N, K)

Arguments

gamma

Vector of current gamma (variational parameters) values.

pi

Vector of current pi (mixture proportions) values.

theta

Vector of current theta (network canonical parameters) values.

network

Array of a network adjacency matrices.

N

Number of nodes.

K

Number of clusters.

Value

Returns all quadratic and linear term coefficients for the quadratic programs corresponding to all nodes.