![]() The points from the boundary to the nearest local minimum are ignored. If the highest point is at boundary of the given range, It finds the highest point in the given range ( center and height),Īnd than tries to find the width of the peak ( hwhm, and area If the range is omitted, the whole dataset will be searched.įityk offers a simple algorithm for peak-detection.Some of the parameters can be specified in brackets.Guess PseudoVoigt(center=$ctr, shape=~0.3) # set the center and shape explicitely (determine height and width) # add one Gaussian to each guess Gaussian # search for the peak in the whole guess Gaussian # the same, but name the new function guess %f1 = Gaussian # add Gaussian in the given guess Gaussian Substitutions must be assigned in the same line, after the keyword where. There is a simple substitution mechanism that makes writing complicated X < center ? Lorentzian(height, center, hwhm1) # split-Gaussian, the same as built-in SplitGaussian (should be in one line)ĭefine SplitG(height, center, hwhm1=fwhm*0.5, hwhm2=fwhm*0.5) = PseudoVoigt (should be in one line)ĭefine GLSum(height, center, hwhm, shape) = Gaussian(height*(1-shape), center, hwhm) # area-based Gaussian can be defined as modification of built-in Gaussian # (it is the same as built-in GaussianA function)ĭefine GaussianArea(area, center, hwhm) = Gaussian(area/hwhm/sqrt(pi/ln(2)), center, hwhm) # supersonic beam arrival time distributionĭefine SuBeArTiDi(c, s, v0, dv) = c*(s/x)^3*exp(-(((s/x)-v0)/dv)^2)/x # this is how some built-in functions could be definedĭefine MyLorentzian(height, center, hwhm) = height/(1+((x-center)/hwhm)^2)ĭefine M圜ubic(a0=height,a1=0, a2=0, a3=0) = a0 + a1*x + a2*x^2 + a3*x^3 Hopefully the examples can make the syntax clear: When giving a full formula, the right-hand side of the equality sign ![]() X < expression ? Function1(…) : Function2(…) as a re-parametrization of existing function.by giving a full formula, like in the example above,.The default value always binds a simple-variable to the parameter. ![]() The default value can be either a number or an expression that depends hwhm means half width at half maximum,Įach parameter may have a default value (see the examples below). The initial values of these parameters can be guessed (command guess)įrom the data.
0 Comments
Leave a Reply. |