get_matrix_feasibility: Get the feasibility domain of a given matrix

View source: R/get_matrix_feasibility.R

get_matrix_feasibilityR Documentation

Get the feasibility domain of a given matrix

Description

this is encapsulated to account for cases in which the matrix is not invertible, and we add a small amount of noise

Usage

get_matrix_feasibility(
  A = NULL,
  bootstrap.replicates = 1000,
  noise.threshold = c(0, 1),
  noise.type = c("random", "targeted")
)

Arguments

A

interaction matrix

bootstrap.replicates

replicates in case A is not invertible

noise.threshold

numeric vector with a minimum and a maximum amount of noise to be incorporated in case A is not invertible

noise.type

'random' or 'targeted'. Noise added to any column at random, or to columns which are linear combinations of the rest

Value

dataframe with feasibility domain, the condition number (see base function 'kappa'), and other info if A is not invertible.


RadicalCommEcol/MultitrophicFun documentation built on Oct. 13, 2023, 1:27 a.m.