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

EUCLIDEAN LENGTH

Name:
    EUCLIDEAN LENGTH (LET)
Type:
    Let Subcommand
Purpose:
    Compute the Euclidean length of a variable.
Description:
    The Euclidean length of a variabe Y is defined as

      \( \| Y \| = \sqrt{\sum_{i=1}^{n}{Y_{i}^{2}}} \)
Syntax:
    LET <par> = EUCLIDEAN LENGTH <y>
                            <SUBSET/EXCEPT/FOR qualification>
    where <y> is the response variable;
                <par> is a parameter where the computed Euclidean length is stored;
    and where the <SUBSET/EXCEPT/FOR qualification> is optional.
Examples:
    LET A = EUCLIDEAN LENGTH Y
    LET A = EUCLIDEAN LENGTH Y SUBSET Y > 0
Note:
    Dataplot statistics can be used in a number of commands. For details, enter

    This command performs the same function as the VECTOR LENGTH command. The distinction is that EUCLIDEAN LENGTH is implemented as a Statistics LET subcommand while VECTOR LENGTH is implemented as a Mathematics LET subcommand. The Statistics LET subcommands work with the 25+ commands documented in HELP STATISTICS while the Mathematics LET subcommands do not.

Default:
    None
Synonyms:
    None
Related Commands: Applications:
    Mathematics
Implementation Date:
    2017/03
Program:
     
    SKIP 25
    READ IRIS.DAT Y1 TO Y4 X
    .
    LET LENGTH  = EUCLIDEAN LENGTH Y1
    SET WRITE DECIMALS 4
    TABULATE EUCLIDEAN LENGTH Y1 X
    .
    XTIC OFFSET 0.2 0.2
    X1LABEL GROUP ID
    LET NDIST = UNIQUE X
    XLIMITS 1 NDIST
    MAJOR X1TIC MARK NUMBER NDIST
    MINOR X1TIC MARK NUMBER 0
    CHAR X
    LINE BLANK
    LABEL CASE ASIS
    CASE ASIS
    TITLE CASE ASIS
    TITLE OFFSET 2
    .
    SET STATISTIC PLOT REFERENCE LINE AVERAGE
    TITLE Euclidean Length (IRIS.DAT)
    Y1LABEL Euclidean Length
    EUCLIDEAN LENGTH PLOT Y1 X
        
    The following output is generated
                Cross Tabulate EUCLIDEAN LENGTH
     
    (Response Variables: Y1       )
    ---------------------------------------------
           X          |   EUCLIDEAN LENGT
    ---------------------------------------------
             1.0000   |           35.4837
             2.0000   |           42.1291
             3.0000   |           46.7964
        
    plot generated by sample program

Privacy Policy/Security Notice
Disclaimer | FOIA

NIST is an agency of the U.S. Commerce Department.

Date created: 07/10/2017
Last updated: 07/10/2017

Please email comments on this WWW page to alan.heckert.gov.