Hi,
I am trying to deconvolute a Raman spectrum which comprises 3 PseudoVoigt peaks. I need to set a center and a range for these peaks according to literature.
First, I add the peaks and approximate them to the center using the GUI, for all the peaks. Then, I set the constrains by commandline with something like:
$_2 = ~1500 [1490:1510] #where "$_2" is the variable name from the list, 1500 the approximate Raman shift center and [1495:1505] the range that I need the peak center to be constrained.
If I use the commandline or the GUI fit function, the center shifts freely and does not constrains between 1495 and 1505.
If, before using the fit function, I lock the center value in the GUI or in the commandline, the center freezes at 1500 and will not fit.
I am using Fityk 1.3.1 under Debian Buster.
Can you tell me what I am doing wrong?
Also, the shape, whith should be constrained between 0:1 may vary to negative values.
PseudoVoigt(height, center, hwhm, shape=0.5[0:1]) = height*((1-shape)*exp(-ln(2)*((x-center)/hwhm)^2)+shape/(1+((x-center)/hwhm)^2))
Thank you
Guillermo