find_peaks
Detect and return local maxima (peaks) in XY curve data by specifying direction (positive, negative, or both) and neighborhood size.
Instructions
Find peaks in an XY curve (local-maximum method).
Args: direction: positive, negative, or both local_points: neighborhood size for the local-maximum search
Returns: JSON list of {x, y} peak positions
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data_book | Yes | ||
| data_sheet | Yes | ||
| x_col | Yes | ||
| y_col | Yes | ||
| direction | No | positive | |
| local_points | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |