OnestepHBS: Perform one heat-bath update step

View source: R/eval.R

OnestepHBSR Documentation

Perform one heat-bath update step

Description

Updates each row (sample) of a binary state matrix by choosing one random position per row and resampling it according to precomputed heat-bath probabilities.

Usage

OnestepHBS(y, logmo)

Arguments

y

Numeric matrix of size nproc x nn (typically 0/1), current states.

logmo

Numeric matrix of probabilities compatible with y. Each row corresponds to a row in y; entries are used to sample 0/1 updates.

Value

A numeric matrix with the same dimensions as y, updated states.


ELAplus documentation built on May 28, 2026, 5:09 p.m.