Add noise to one matrix.

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.