···128128#' @source <https://arxiv.org/abs/2501.18548v2>
129129NURS <- function(logpdf, theta_init, n, epsilon, h, M) {
130130 stopifnot(epsilon >= 0, h > 0)
131131- d <- length(theta_init)
132132- draws <- matrix(NA, n, d)
131131+ draws <- matrix(0, n, length(theta_init))
133132 draws[1, ] <- theta_init
134133 for (i in 2:n) {
135134 draws[i, ] <- NURS_step(logpdf, draws[i - 1, ], epsilon, h, M)