FIND PEAKS AND VALLEYS

Purpose:

Sets the crosshair cursor to the first, previous, or next Peak or Valley from a specified threshold.

Syntax:

FUNCTION(win, threshold, width)

win

-

Optional. Window reference. Defaults to the current Window.

threshold

-

A real number above/below which the peak/valley will be found.

width

-

Optional. An integer minimum width. Defaults to 1.

 

FPEAK

Sets the crosshair cursor to the first peak above the threshold.

FPEAKN

Sets the crosshair cursor to the next peak above the threshold.

FPEAKP

Sets the crosshair cursor to the previous peak above the threshold.

FVALL

Sets the crosshair cursor to the first valley below the threshold.

FVALLN

Sets the crosshair cursor to the next valley below the threshold.

FVALLP

Sets the crosshair cursor to the previous valley below the threshold.

Remarks:

FVALL must be executed before FVALLN. FVALLN must be executed before using FVALLP. FPEAK must be executed before using FPEAKN. FPEAKN must be executed before using FPEAKP.

 

The threshold argument is optional for FPEAKN, FPEAKP, FVALLN, and FVALLP. If no threshold argument is specified for these functions, the last threshold value is used by default.

 

These functions set the cursor position but do not display point values nor do they provide an active cursor. Use CURSORON to activate the cursor.

See Also:

CURPOS

CURSORON

FMAX

FMIN

GETPEAK

GETVALLEY

MAX

MIN