Reference Guide

Full Command and Function Reference 3-29
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 (n
bins
+ 2) bins, where the left edge
of bin 1 starts at value x
min
and each bin has width x
width
.
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 n
freq bin n
is incremented, where:
n
fr e q b in n
IP
x x
m in
x
w i dth
-------------------
=
for x
min
xx
max
, where x
max
= x
min
+ (n
bins
)(x
width
).
Access: …µ
BINS
Input/Output:
L3/A1 L2/A2 L1/A3 L2/I1 L1/I2
x
min
x
width
n
bins
[[ n
bin 1
... n
bin n
]]
[ n
bin L
n
bin 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 x
min
(0),
and one was greater than x
max
(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: !°L
GROB BLANK
( °is the left-shift of the Nkey).
Input/Output:
Level 2/Argument 1 Level 1/Argument 2 Level 1/Item 1
#n
width
#m
height
grob
blank
See also: →GROB, LCD→
BOX
Type: Command Operation
Description: Box Command: Draws in PICT a box whose opposite corners are defined by the specified pixel
or user-unit coordinates.
Access: !°L
PICT BOX
( °is the left-shift of the Nkey).