zero.noise: Add random noise to zero values in square matrix

Description Usage Arguments Value

View source: R/zero_noise.r

Description

This is a helper function used by mx.expand.

Usage

1
zero.noise(x, lo = 0, hi = 0.01, exclude.diag = TRUE)

Arguments

x

A numerical square matrix.

lo

A numeric specifying the lower boundary of to be inserted random values (random values are generated with runif).

hi

A numeric specifying the upper boundary of to be inserted random values.

exclude.diag

A logical stating whether the diagonal values should be left alone; defaults to TRUE.

Value

A numerical square matrix with random noise added to zero values.


joheli/yea13 documentation built on Sept. 18, 2020, 11:21 p.m.