walk_step: Performs a step of the Markov Chain Monte Carlo method

View source: R/RcppExports.R

walk_stepR Documentation

Performs a step of the Markov Chain Monte Carlo method

Description

Modifies the matrix while keeping the column and row sums constant, as well as leaving the positions strictly preceding (k,l) in lexicographical order invariant.

Usage

walk_step(M, k, l)

Arguments

M

matrix

k, l

Coordinates of the first element that is not invariant

Value

boolean indicating whether the step left the matrix invariant


clustAnalytics documentation built on May 29, 2024, 12:18 p.m.