Skip to contents

Bipartite snap-shift dynamic UV Gibbs update

Usage

rUV_dynamic_snap_bip_fc_cpp(
  U_state,
  V_state,
  E,
  G,
  rho_uv,
  sigma_uv,
  s2,
  kappa,
  pi_snap,
  delta_u_current,
  delta_v_current,
  max_abs = -1
)

Arguments

U_state

3D array (nA x RA x T)

V_state

3D array (nB x RB x T)

E

3D array of residuals (nA x nB x T)

G

Interaction matrix (RA x RB)

rho_uv

AR(1) persistence of the drift

sigma_uv

Innovation standard deviation of the drift

s2

Dyadic variance

kappa

Standard deviation of a reset position

pi_snap

Reset probability

delta_u_current

Current row resets (nA x T)

delta_v_current

Current column resets (nB x T)

max_abs

Optional positive coordinate bound; nonpositive or infinite values disable it

Value

List with U, V, delta_u, delta_v and bound_rejections