checkConvergence: ELBO Convergence Check helper method

View source: R/helpers_convergence.R

checkConvergenceR Documentation

ELBO Convergence Check helper method

Description

Returns TRUE when the absolute ELBO change between consecutive iterations falls below convergence_threshold. Returns FALSE if either ELBO value is NULL or NA.

Usage

checkConvergence(elbo_c, elbo_prev, convergence_threshold)

Arguments

elbo_c

Numeric scalar. ELBO at the current iteration.

elbo_prev

Numeric scalar. ELBO at the previous iteration.

convergence_threshold

Positive scalar. Tolerance for convergence.

Value

Logical scalar.


fda.vi documentation built on June 20, 2026, 5:06 p.m.