add_noise: Add noise to one matrix.

Description Usage Arguments Value

View source: R/simu.R

Description

Add noise to one matrix.

Usage

1
add_noise(data, mean = 0, sd = 0.2, val_min = 0, val_max = 1)

Arguments

data

The matrix to disturb.

mean

The mean of the normal distribution of noises.

sd

The standard deviation of the normal distribution of noises.

val_min,

the minimum value of the matrix

val_max,

the maximal value of the matrix

Value

This function return the matrix with noise.


bcm-uga/medepir documentation built on Oct. 11, 2020, 2 a.m.