wincowgerDEV / OpenSpecy-package

Analyze, Process, Identify, and Share, Raman and (FT)IR Spectra
http://wincowger.com/OpenSpecy-package/
Creative Commons Attribution 4.0 International
23 stars 11 forks source link

[Feature]: better smoothing and derivative calculation #164

Closed wincowgerDEV closed 7 months ago

wincowgerDEV commented 7 months ago

Guidelines

Description

I'm exploring some alternatives to SG filtering.

This is apparently a very good smoothing filter. https://github.com/GuillaumeBiessy/WH

Also this has the new new on derivatives that don't increase noise: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9026279/

Problem

Sg filter has artifacts near edges and increases noise for derivatives.

Proposed Solution

Add in functions for these new methods.

Alternatives Considered

Have people integrate these functions into their routines.

wincowgerDEV commented 7 months ago

Added the WH smoother and a derivative option in new PR https://github.com/wincowgerDEV/OpenSpecy-package/pull/161/commits/fd3b06a6ff441726a9d5f549f60aaaa78970fc70