956
Appendix A: System Routines — Statistics
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
statStart
Declaration:
void
statStart
(void)
Category(ies):
Statistics, Variables
Description:
The sequence for an app to store to the stat variables is:
statStart() // all stat vars initialized to invalid floats
RM_Type = . . . // set to stat calculation type to follow
. . . // do calculations
. . . // store to stat vars with VarStore
statEnd() // allow other apps to use the stat variables
The stat variables are now readable by the app or the user but they cannot
be stored to by either. Commands like ShowStat will display any stat
variables that have valid values stored in them.
NOTE:
All of the above code should be placed in a TRY . . . ENDTRY block.
The ONERR part should call
statEnd
first, then it can handle the error. See
the example below.
Inputs:
None
Outputs:
May throw ER_MEMORY if not enough memory to create stat variables.
Assumptions:
None
Side Effects:
May cause heap compression.
Availability:
On AMS 2.00 and higher.
Note that
RM_Type
is only available on 2.04 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: statEnd, statFree, QstatRcl, VarStore, RM_Type
(continued)