Manipulations and various computations

Note: The title of this chapter is not appropriate now, but in future more commands will be implemented and described here.

Finding peaks

For now, fityk offers only primitive algorithm for peak-detection. It looks for highest point in given range, and than tries to find out width of peak. This method is used by crystallographic module, and it is used when adding peaks (semi-)automatically in graphical version of the program. It can be called directly, using command:

m.findpeak [ center [margin] ]

If center and margin are not specified, highest peaks are searched in all data, otherwise only a range (center - margin ; center + margin) is considered. Default value of margin is equal to value of option search-width. Option estimate-consider-sum is set by default and causes that program is looking for peaks by analyzing difference of the data and the sum of functions. If not set, only data will be considered. Setting option cancel-peak-out-of-search disables adding peak, when the highest point in the range is found at the border of requested range.