|The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....|
|Home MathPack Math2 Procedures and Functions CreateGaussianPeaks|
|See also: Gauss2D, CreateSigmoidArray|
The function CreateGaussianPeaks generates a signal which consists of one or more Gaussian peaks. The individual peaks are specified by the array PeakParams which is an open array of TGaussPeakParams. The first element of each entry of PeakParams (PeakParam[.]) specifies the position, the second (PeakParam[.]) the width and the third element (PeakParam[.]) contains the amplitude. Please note that both the position and the width refer to the index of the Signal array. Thus the length of the Signal array determines the resolution of the peaks. All defined peaks are added and the sum is stored in the Signal array.
The figure below shows the results of five calls to CreateGaussianPeaks plotted on top of each other. The Signal array had a length of 101 elements, in all calls a single peak was specified whose position (50) and intensity (1.0) were kept constant and whose width paremeter varied between 4 and 20.
The function returns the following error codes:
0 ... everything is OK