View source: R/superimposeNoise.R
superimposeNoise | R Documentation |
This contaminates MSI data with additive noise at certain m/z locations. This is used for testing purposes.
superimposeNoise(
x = NULL,
spData = NULL,
method,
mz,
fwhm,
noiseFactor = 1,
searchFactor = 3,
sigmainterference = 2,
mzTrim = 0,
numSpikedPeaks = 10,
returnMat = FALSE,
verbose = FALSE
)
x: |
dataset, a list of |
spData: |
a corresponding sparse MSI matrix of type 'sparseIntensityMatrix'. |
method: |
character string, the method used to add noise c("Poisson", "Gaussian","intensityArtifacts","interference"). |
mz: |
numeric, m/z value where the noise will be added. |
fwhm: |
numeric, the fwhm at the specified m/z. |
noiseFactor: |
integer, this will be multiplied by the standard deviation of intensities at |
searchFactor: |
integer, search tolerance, how many standard deviations (sigma) around |
sigmainterference: |
integer, how many standard deviations (sigma) away from |
mzTrim: |
numeric, this will trim the m/z axis to only include |
numSpikedPeaks: |
integer, number of spiked peaks for |
returnMat: |
if |
verbose: |
whether to print progress. |
A list of 'MassPeaks' objects contaminated with noise, if returnMat = FALSE)
or a sparse matrix of type Matrix::dgCMatrix
otherwise.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.