add_noise_matrix: add random or targeted noise to a non-invertible matrix

View source: R/add_noise_matrix.R

add_noise_matrixR Documentation

add random or targeted noise to a non-invertible matrix

Description

add random or targeted noise to a non-invertible matrix

Usage

add_noise_matrix(
  A = NULL,
  noise.threshold = c(0, 1),
  noise.type = c("random", "targeted")
)

Arguments

A

numeric matrix

noise.threshold

vector of two values, minimum and maximum value for the perturbation

noise.type

random (to any column) or targeted (to columns that are linear combinations of others)

Value

perturbed matrix


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