BINS

Type: Command

Description: Sort into Frequency Bins Command: Sorts the elements of the independent column (XCOL) of

the current statistics matrix (the reserved variable ΣDAT) into (nbins + 2) bins, where the left edge of bin 1 starts at value xmin and each bin has width xwidth.

BINS returns a matrix containing the frequency of occurrences in each bin, and a 2-element array containing the frequency of occurrences falling below or above the defined range of x-values. The array can be stored into the reserved variable ΣDAT and used to plot a bar histogram of the bin data (for example, by executing BARPLOT).

For each element x in ΣDAT, the nth bin count nfreq bin n is incremented, where:

n= IP x xmin

freqbinn -------------------

xwidth

for xmin x xmax, where xmax = xmin + (nbins)(xwidth).

Access:

…µBINS

 

 

 

 

Input/Output:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

L3/A1

L2/A2

L1/A3

L2/I1

L1/I2

 

 

 

 

 

 

 

 

 

xmin

xwidth

nbins

[[ nbin 1 ... nbin n ]]

[ nbin L nbin R]

 

 

 

 

 

 

 

L = Level; A = Argument; I = item

Example: If the independent column of ΣDAT contains the following data:

7 2 3 1 4 6 9 0 1 1 3 5 13 2 6 9 5 8 5

1 2 5 BINS returns [[ 5 ][ 3 ][ 5 ][ 2 ][ 2 ]] and [ 1 1 ] The data has been sorted into 5 bins of width 2, starting at x-value 1 and ending at x-value 11. The first element of the matrix shows that 5 x-values (2 1 1 1 2) fell in bin 1, where bin 1 ranges from x-value 1 through 2.99999999999. The vector shows that one x-value was less than xmin (0), and one was greater than xmax (13).

See also: BARPLOT, XCOL

BLANK

Type:

Command

 

 

 

Description:

Blank Graphics Object Command: Creates a blank graphics object of the specified width and

 

height.

 

 

 

Access:

!°LGROB BLANK

( °is the left-shift of the Nkey).

Input/Output:

 

 

 

 

 

 

 

 

 

 

 

 

 

Level 2/Argument 1

Level 1/Argument 2

 

Level 1/Item 1

 

 

 

 

 

 

 

 

#nwidth

#mheight

grobblank

 

→GROB,

 

 

 

 

See also:

LCD→

 

 

 

 

 

 

 

 

 

BOX

Command Operation

 

 

 

Type:

 

 

 

Description: Box Command: Draws in PICT a box whose opposite corners are defined by the specified pixel or user-unit coordinates.

Access: !°LPICT BOX

( °is the left-shift of the Nkey).

Full Command and Function Reference 3-29