Description Usage Arguments Value Author(s)

Smooth (denoise) the spectrum by DWT (Discrete Wavelet Transform)

1 |

`ms` |
a vector representing the mass spectrum |

`nLevel` |
the level of DWT decomposition |

`wf` |
the name of wavelet for DWT |

`localNoiseTh` |
local noise level threshold |

`localWinSize` |
local window size for estimate local noise threshold |

`globalNoiseTh` |
global noise level threshold |

`smoothMethod` |
the method used for denoising. 'hard' means keeping the dwt coefficients higher than the threshold unchanged; "soft" means the dwt coefficients higher than the threshold were subtracted by the threshold. |

`method` |
'dwt' or 'modwt' used for decomposition |

return the smoothed mass spectrum with the 'detail' component of DWT as an attribute 'detail'.

Pan Du

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.