## MassSpectrum
setMethod(f="estimateBaseline",
signature=signature(object="MassSpectrum"),
definition=function(object, method=c("SNIP", "TopHat", "ConvexHull",
"median"),
...) {
if (.isEmptyWarning(object)) {
return(NA)
}
cbind(mass=object@mass,
intensity=.estimateBaseline(x=object@mass, y=object@intensity,
method=method, ...))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.