get_dqc_equilibrium_base: Calculate the vector equilibrium

View source: R/get_dqc_equilibrium.R

get_dqc_equilibrium_baseR Documentation

Calculate the vector equilibrium

Description

This low-level function iterates through the initial DQC vector until an equilibrium is reached at a given tolerance.

Usage

get_dqc_equilibrium_base(init, infect, detect, tolerance = 1e-04, burn_in = 10)

Arguments

init

Initial values for DQC compartments. All elements of this vector should sum to 1.

infect

Matrix. The infection matrix.

detect

Matrix. The detection matrix.

tolerance

Numeric value between 0 and 1. Tolerance to determine whether an equilibrium has been met. Default: 1e-4

burn_in

Numeric positive value. Minimum number of iterations to run. Default: 10.

Value

The proportions at equilibrium.


HopkinsIDD/tti documentation built on May 24, 2022, 1:11 a.m.