Julian-Hochhaus / LG4X-V2

A graphical user interface of Python lmfit package was developed for standard X-ray photoemission spectroscopy (XPS) curve fitting analysis. The interface streamlines the fitting procedures for validating results and their consistency.
https://julian-hochhaus.github.io/LG4X-V2/
Other
20 stars 9 forks source link

Skewed Voigh seems to report a wrong peak position. #93

Closed kevinsmia1939 closed 1 year ago

kevinsmia1939 commented 1 year ago

Hi,

I use the latest commit: 0e11a6d3be387c488b5c738bee5af6c9e8a2938b

When using skewed Voigh with a high skew value, like 1, for example, The peak position on the plot does not seem to match what is shown in the "center" value. Is this normal? Here, I set the center to 285 eV, but I can see in the plot that it is about 285.5 eV.

Screenshot_20230928_104326

kevinsmia1939 commented 1 year ago

It's possible that the peak location was derived from the mean or median rather than the mode, which is the highest point.

Julian-Hochhaus commented 1 year ago

It’s actually the expected behavior. The center value given is indeed the value fed to the skewed voigt formula. However, the skew shifts the maximum of the peak away from the center.

Wikipedia

kevinsmia1939 commented 1 year ago

Thanks for clarification!