| Top |  |  |  |  | 
| GwyPeaks * | gwy_peaks_new () | 
| GwyPeaks * | gwy_peaks_copy () | 
| void | gwy_peaks_free () | 
| void | gwy_peaks_set_background () | 
| void | gwy_peaks_set_order () | 
| guint | gwy_peaks_analyze () | 
| guint | gwy_peaks_analyze_xy () | 
| guint | gwy_peaks_analyze_dataline () | 
| guint | gwy_peaks_n_peaks () | 
| void | gwy_peaks_get_quantity () | 
GwyPeaks *
gwy_peaks_copy (GwyPeaks *peaks);
Creates a copy of a peak analyser.
This is mostly useful for language bindings.
Since: 2.47
void
gwy_peaks_free (GwyPeaks *peaks);
Frees a peak analyser and all associated data.
Since: 2.46
void gwy_peaks_set_background (GwyPeaks *peaks,GwyPeakBackgroundType background);
Sets the background type a peak analyser will use.
The default background is GWY_PEAK_BACKGROUND_MMSTEP.  Note that the new
background type will only be used in future analyses; it does not change the
results of the already performed analysis.
Since: 2.46
void gwy_peaks_set_order (GwyPeaks *peaks,GwyPeakOrderType order);
Sets the order type a peak analyser will use.
The default order is GWY_PEAK_ORDER_ABSCISSA.  Note that the new order will
only be effective in future analyses; it does not change the results of the
already performed analysis.
Since: 2.46
guint gwy_peaks_analyze (GwyPeaks *peaks,const gdouble *xdata,const gdouble *ydata,guint n,guint maxpeaks);
Finds peaks a graph curve given as separated x
 and y
 data.
The peaks are remembered by the analyser and their properties can be
subsequently requested using gwy_peaks_get_quantity().
| peaks | A peak analyser. | |
| xdata | Abscissa values (array with  | |
| ydata | Ordinate values corresponding to  | |
| n | Number of data points in the curve. | |
| maxpeaks | Maximum number of the most prominent peaks to locate. | 
Since: 2.46
guint gwy_peaks_analyze_xy (GwyPeaks *peaks,const GwyXY *xydata,guint n,guint maxpeaks);
Finds peaks a graph curve given as GwyXY data.
The peaks are remembered by the analyser and their properties can be
subsequently requested using gwy_peaks_get_quantity().
| peaks | A peak analyser. | |
| xydata | Curve points (array with  | |
| n | Number of data points in the curve. | |
| maxpeaks | Maximum number of the most prominent peaks to locate. | 
Since: 2.46
guint gwy_peaks_analyze_dataline (GwyPeaks *peaks,GwyDataLine *dline,guint maxpeaks);
Finds peaks a graph curve given as GwyDataLine.
The peaks are remembered by the analyser and their properties can be
subsequently requested using gwy_peaks_get_quantity().
| peaks | A peak analyser. | |
| dline | Curve data as a data line. | |
| maxpeaks | Maximum number of the most prominent peaks to locate. | 
Since: 2.46
guint
gwy_peaks_n_peaks (GwyPeaks *peaks);
Gets the current number of peaks of a peak analyser.
Since: 2.46
void gwy_peaks_get_quantity (GwyPeaks *peaks,GwyPeakQuantity quantity,gdouble *data);
Obtaines values of a given quantity for all found peaks.
| peaks | A peak analyser. | |
| quantity | Peak property to return. | |
| data | Array of sufficient length to hold values for all peaks (their
number is returned by  | 
Since: 2.46
Type of background available in graph peak analysers.
Since: 2.46
Type of peak ordering by in the graph peak analyser results.
Since: 2.46
Type of pcharacteristics graph peak analysers can provide.
| Compound quantity characteristing the overall peak prominence (taking into account height, area, distance from other peaks, ...). | ||
| Position of peak maximum. | ||
| Peak height (with respect to the chosen background function). | ||
| Peak area (with respect to the chosen background function). | ||
| Peak width, more or less corresponding to standard deviation. | 
Since: 2.46