applyRAS: Integrate pre-adjustment of t_r, t_c and t (tolerance level)...

View source: R/CalculationFunctions.R

applyRASR Documentation

Integrate pre-adjustment of t_r, t_c and t (tolerance level) with RAS function.

Description

Integrate pre-adjustment of t_r, t_c and t (tolerance level) with RAS function.

Usage

applyRAS(m0, t_r, t_c, relative_diff, absolute_diff, max_itr)

Arguments

m0

A matrix object.

t_r

A vector setting the target row sums of the matrix.

t_c

A vector setting the target column sums of the matrix.

relative_diff

A numeric value setting the relative difference of the two numerical vectors.

absolute_diff

A numeric value setting the mean absolute difference of the two numerical vectors.

max_itr

A numeric value setting the maximum number of iterations to try for convergence. Defualt: 1000000.

Value

A RAS balanced matrix.


USEPA/stateio documentation built on Feb. 12, 2024, 6:41 a.m.