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 2element array containing the frequency of occurrences falling below or above the defined range of xvalues. 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 freqb in n = IP

x xmin

-------------------

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 xvalue 1 and ending at xvalue 11. The first element of the matrix shows that 5 xvalues (2 1 1 1 2) fell in bin 1, where bin 1 rang es from xvalue 1 through 2.99999999999. The vector shows th at one xvalue 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 leftshift 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 userunit coordinates.

Access: !°LPICT BOX

( °is the leftshift of the Nkey).

Full Command and Function Reference 329

Page 149
Image 149
HP 48gII Graphing, 50g Graphing manual Bins, Blank, Box, Lcd→, Access !L Pict BOX Is the leftshift of the Nkey