SED navigation bar go to SED home page go to Dataplot home page go to NIST home page SED Home Page SED Staff SED Projects SED Products and Publications Search SED Pages
Dataplot Vol 2 Vol 1

MATRIX BIN

Name:
    MATRIX BIN (LET)
Type:
    Let Subcommand
Purpose:
    Generate s frequency table for the elements in a matrix.
Description:
    There are times when you may want to generate a histogram for all the elements in a matrix. This command can help perform that task.

    The same rules that a histogram uses to determine classes apply to this command as well.

    Specifically, the default class widths are determined as follows:

    1. The defalt class width is 0.3 times the sample standard deviation.

    2. The lower class limit is the sample mean minus six times the sample standard deviation.

    3. The upper class limit is the sample mean plus six times the sample standard deviation.

    You can override these defaults with the commands

      CLASS WIDTH <value>
      CLASS LOWER <value>
      CLASS UPPER <value>

    The SET HISTOGRAM CLASS WIDTH lets you set several other alternatives for the default class width.

Syntax:
    LET <Y2> <X2> = MATRIX BIN <M>
    where <M> is a matrix;
                <X2> is a variable where the computed class mid-points are returned;
    and     <Y2> is a variable where the computed class frequencies are returned.
Examples:
    LET Y2 X2 = MATRIX BIN M
Default:
    None
Synonyms:
    None
Related Commands: Applications:
    Distributional Modeling
Implementation Date:
    2006/3
Program:
    DIMENSION 100 COLUMNS
    READ MATRIX SIGMA
    1.0     -0.707  0.0    0.0    0.0
    -0.707   1.0    0.5    0.5    0.5
    0.0      0.5    1.0    0.5    0.5
    0.0      0.5    0.5    1.0    0.5
    0.0      0.5    0.5    0.5    1.0
    END OF DATA
    .
    LET MU = DATA 0 0 0 0 0
    LET N = 200
    LET M = MULTIVARIATE NORMAL RANDOM NUMBERS MU SIGMA N
    .
    LET Y2 X2 = MATRIX BIN M
    HISTOGRAM Y2 X2
        
    plot generated by sample program

Date created: 4/14/2006
Last updated: 4/14/2006
Please email comments on this WWW page to alan.heckert@nist.gov.