Replaces values in matrix mat according to mask msk.
Depending of 'add_noise'
parameter, values of 'mat'
will be replaced with noise or not.
a NumericMatrix cleansed according to 'msk'
.
a NumericMatrix.
a IntegerMatrix.
bool, whether to add normal noise or not, Rcpp::Rf_rnorm(bg, sd)
function is used. Default is true
.
double, mean value of the background added if 'add_noise'
is true
. Default is 0.0
.
double, standard deviation of the background added if 'add_noise'
is true
. Default is 0.0
.