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

CUMULATIVE MAXIMUM

Name:
    CUMULATIVE MAXIMUM (LET)
Type:
    Let Subcommand
Purpose:
    Compute the cumulative maximum for a variable.
Description:
    For element I of the given variable, the cumulative maximum is the maximum of elements 1 through I.
Syntax:
    LET <y> = CUMULATIVE MAXIMUM <x>       <SUBSET/EXCEPT/FOR qualification>
    where <x> is a response variable;
                <y> is a variable where the computed cumulative maximums are stored;
    and where the <SUBSET/EXCEPT/FOR qualification> is optional.
Examples:
    LET Y2 = CUMULATIVE MAXIMUM Y1
    LET Y2 = CUMULATIVE MAXIMUM Y1 SUBSET Y1 > 0
Default:
    None
Synonyms:
    None
Related Commands: Applications:
    Data Analysis
Implementation Date:
    2012/12
Program:
     
    let y = norm rand numb for i = 1 1 10
    .
    let y1 = cumulative sum  y
    let y2 = cumulative mean y
    let y3 = cumulative mini y
    let y4 = cumulative maxi y
    .
    set write decimals 3
    print y y1 y2 y3 y4
        
    The following output is generated
    ---------------------------------------------------------------------------
                  Y             Y1             Y2             Y3             Y4
    ---------------------------------------------------------------------------
             -1.073         -1.073         -1.073         -1.073         -1.073
              0.573         -0.499         -0.249         -1.073          0.573
             -0.873         -1.373         -0.457         -1.073          0.573
              0.233         -1.139         -0.284         -1.073          0.573
             -0.455         -1.594         -0.318         -1.073          0.573
             -0.525         -2.120         -0.353         -1.073          0.573
             -0.705         -2.825         -0.403         -1.073          0.573
              0.032         -2.793         -0.349         -1.073          0.573
              1.190         -1.602         -0.178         -1.073          1.190
              0.269         -1.332         -0.133         -1.073          1.190
        

Date created: 01/07/2013
Last updated: 01/13/2013
Please email comments on this WWW page to alan.heckert@nist.gov.