Up: Home page for Qhull
Up: Qhull manual: Table of Contents
Up: Programs • Options • Output • Formats • Geomview • Print • Qhull • Precision • Trace
Up: Qhull code: Table of Contents
To: Qhull functions, macros, and data structures
To: Geom • Global • Io • Mem • Merge • Poly • Qhull • Set • Stat • User

## stat.c -- statistical operations

> Qhull records many statistics. These functions and macros make it inexpensive to add a statistic.

> As with Qhull's global variables, the statistics data structure is accessed by a macro, 'qhstat'. If qh_QHpointer is defined, the macro is 'qh_qhstat->', otherwise the macro is 'qh_qhstat.'. Statistics may be turned off in user.h. If so, all but the 'zz' statistics are ignored.

Copyright © 1995-2012 C.B. Barber

» Geom • Global • Io • Mem • Merge • Poly • Qhull • Set • Stat • User

### Index to stat.c and stat.h

- stat.h types
- stat.h constants
- stat.h macros
- stat.c functions

### »stat.h types

- intrealT union of integer and real
- qhstat global data structure for statistics

### »stat.h constants

- qh_KEEPstatistics 0 turns off most statistics
- Z..., W... integer (Z) and real (W) statistics
- ZZstat Z.../W... statistics that remain defined if qh_KEEPstatistics=0
- ztype zdoc, zinc, etc. for definining statistics

### »stat.h macros

- MAYdebugx called frequently for error trapping
- zadd_/wadd_ add value to an integer or real statistic
- zdef_ define a statistic
- zinc_ increment an integer statistic
- zmax_/wmax_ update integer or real maximum statistic
- zmin_/wmin_ update integer or real minimum statistic
- zval_/wval_ set or return value of a statistic

### »stat.c functions

- qh_allstatA define statistics in groups of 20
- qh_allstatistics reset printed flag for all statistics
- qh_collectstatistics collect statistics for qh.facet_list
- qh_freestatistics free memory used for statistics
- qh_initstatistics allocate and initialize statistics
- qh_newstats returns True if statistics for zdoc
- qh_nostatistic true if no statistic to print
- qh_printallstatistics print all statistics
- qh_printstatistics print statistics to a file
- qh_printstatlevel print level information for a statistic
- qh_printstats print statistics for a zdoc group
- qh_stddev compute the standard deviation and average from statistics

Up: Home page for Qhull
Up: Qhull manual: Table of Contents
Up: Programs • Options • Output • Formats • Geomview • Print • Qhull • Precision • Trace
Up: Qhull code: Table of Contents
To: Qhull functions, macros, and data structures
To: Geom • Global • Io • Mem • Merge • Poly • Qhull • Set • Stat • User

The Geometry Center Home Page

Comments to: qhull@qhull.org
Created: May 2, 1997 --- Last modified: see top