sgibb / MALDIquant

Quantitative Analysis of Mass Spectrometry Data
https://strimmerlab.github.io/software/maldiquant/
60 stars 25 forks source link

Add weighted average to the spectrum smoothing? #53

Closed SiggiSmara closed 6 years ago

SiggiSmara commented 6 years ago

Hello, I've added weighted average to the spectrum smoothing functions in my local fork. It is a simple one that calculates weights based on the distance from the center of the smoothing window like this: 1/2**abs(-halfWindowSize:halfWindowSize) and then normalizes the weights to 1 in order not to inflate the signal. If this of interest I'm more than happy to make a pull request. best, Siggi

sgibb commented 6 years ago

Closed via ce2ae339ea915641e87e65218e5630d0725bc438.