addSNR_spd: addSNR_spd

Description Usage Arguments

View source: R/addnoise_spd.R

Description

Adds random noise to an SPD matrix, given a signal to noise ratio. Signal and Noise are measured as matrix content (inner product on the SPD manifold).

Usage

1
addSNR_spd(A, SNR = 1, num_cov = 1, taper = F)

Arguments

A

An SPD matrix which will be noisified.

SNR

Signal to Noise ratio to be used in generating the noise.

num_cov

num_cov allows scaling the SNR by the number of covariates (Effective SNR = SNR*num_cov).

taper

if taper=T, reduces the noise exponentially as distance from the diagonal increases (1/2^d).


mrparker909/MGLMRiem documentation built on March 19, 2020, 3:37 p.m.