Routines for working with statistics.
short QstatRcl (void); |
Tells if VarRecall can be used to read the stat variables.
It returns TRUE if the stat variables are valid, FALSE otherwise.
See also: statEnd, statStart, statFree, VarRecall
void statEnd (void); |
Tells the system that the program is no more working on the stat variables.
This function must be called when the work on the stat variables is finished.
void statFree (void); |
Frees the stat variables (including regeq and regcoef) if they exist.
This function may set the dirty flag for the graph (this will force a regraph when the grapher is activated).
void statStart (void); |
Creates stat vars and sets them to invalid values.
This function must be called prior to any modifications to the stat variables:
statStart(); // Creates and initializes the stat vars to invalid values. RM_Type = ... // set to the type you want, see RM_Type // do calculations // store to stat vars with VarStore statEnd(); // tell the system we are no more working on the stat variables...
statStart can throw 'Error: Memory'.
unsigned char RM_Type; |
Global variable that specifies the type of the current stat operation.
Valid values for RM_Type are described in enum RegModelTypes.
enum RegModelTypes {
|
An enumeration for describing the different types of the current stat operation.
This enum describes the correct values for RM_Type.