1 | <!-- Do not edit with Front Page, it adds too many spaces -->
|
---|
2 | <html>
|
---|
3 | <head>
|
---|
4 | <meta http-equiv="Content-Type"
|
---|
5 | content="text/html; charset=iso-8859-1">
|
---|
6 | <title>stat.c -- statistical operations</title>
|
---|
7 | </head>
|
---|
8 |
|
---|
9 | <body>
|
---|
10 | <!-- Navigation links -->
|
---|
11 | <p><a name="TOP"><b>Up:</b></a> <a
|
---|
12 | href="http://www.qhull.org">Home page</a> for Qhull<br>
|
---|
13 | <b>Up:</b> <a href="../../html/index.htm#TOC">Qhull manual</a>: Table of Contents <br>
|
---|
14 | <b>Up:</b> <a href="../../html/qh-quick.htm#programs">Programs</a>
|
---|
15 | • <a href="../../html/qh-quick.htm#options">Options</a>
|
---|
16 | • <a href="../../html/qh-opto.htm#output">Output</a>
|
---|
17 | • <a href="../../html/qh-optf.htm#format">Formats</a>
|
---|
18 | • <a href="../../html/qh-optg.htm#geomview">Geomview</a>
|
---|
19 | • <a href="../../html/qh-optp.htm#print">Print</a>
|
---|
20 | • <a href="../../html/qh-optq.htm#qhull">Qhull</a>
|
---|
21 | • <a href="../../html/qh-optc.htm#prec">Precision</a>
|
---|
22 | • <a href="../../html/qh-optt.htm#trace">Trace</a><br>
|
---|
23 | <b>Up:</b> <a href="../../html/qh-code.htm#TOC">Qhull code: Table of Contents</a><br>
|
---|
24 | <b>To:</b> <a href="index.htm">Qhull functions</a>, macros, and data structures<br>
|
---|
25 | <b>To:</b> <a href="qh-geom.htm">Geom</a> • <a href="qh-globa.htm">Global</a>
|
---|
26 | • <a href="qh-io.htm">Io</a> • <a href="qh-mem.htm">Mem</a>
|
---|
27 | • <a href="qh-merge.htm">Merge</a> • <a href="qh-poly.htm">Poly</a>
|
---|
28 | • <a href="qh-qhull.htm">Qhull</a> • <a href="qh-set.htm">Set</a>
|
---|
29 | • <a href="qh-stat.htm#TOC">Stat</a> • <a href="qh-user.htm">User</a>
|
---|
30 | </p>
|
---|
31 | <hr>
|
---|
32 |
|
---|
33 | <h2>stat.c -- statistical operations</h2>
|
---|
34 | <blockquote>
|
---|
35 | <p>Qhull records many statistics. These functions and
|
---|
36 | macros make it inexpensive to add a statistic.
|
---|
37 | <p>As with Qhull's global variables, the statistics data structure is
|
---|
38 | accessed by a macro, 'qhstat'. If qh_QHpointer is defined, the macro
|
---|
39 | is 'qh_qhstat->', otherwise the macro is 'qh_qhstat.'.
|
---|
40 | Statistics
|
---|
41 | may be turned off in user.h. If so, all but the 'zz'
|
---|
42 | statistics are ignored.</p>
|
---|
43 | </blockquote>
|
---|
44 | <p><b>Copyright © 1995-2012 C.B. Barber</b></p>
|
---|
45 | <hr>
|
---|
46 | <p><a href="#TOP">»</a> <a href="qh-geom.htm#TOC">Geom</a>
|
---|
47 | <a name="TOC">•</a> <a href="qh-globa.htm#TOC">Global</a>
|
---|
48 | • <a href="qh-io.htm#TOC">Io</a> • <a href="qh-mem.htm#TOC">Mem</a>
|
---|
49 | • <a href="qh-merge.htm#TOC">Merge</a> • <a href="qh-poly.htm#TOC">Poly</a>
|
---|
50 | • <a href="qh-qhull.htm#TOC">Qhull</a> • <a href="qh-set.htm#TOC">Set</a>
|
---|
51 | • <b>Stat</b> • <a href="qh-user.htm#TOC">User</a>
|
---|
52 | </p>
|
---|
53 | <h3>Index to <a href="stat.c">stat.c</a> and
|
---|
54 | <a href="stat.h">stat.h</a></h3>
|
---|
55 | <ul>
|
---|
56 | <li><a href="#ttype">stat.h types</a> </li>
|
---|
57 | <li><a href="#tconst">stat.h constants</a> </li>
|
---|
58 | <li><a href="#tmacro">stat.h macros</a> </li>
|
---|
59 | <li><a href="#tfunc">stat.c functions</a> </li>
|
---|
60 | </ul>
|
---|
61 |
|
---|
62 | <h3><a href="qh-stat.htm#TOC">»</a><a name="ttype">stat.h types</a></h3>
|
---|
63 | <ul>
|
---|
64 | <li><a href="stat.h#intrealT">intrealT</a> union of
|
---|
65 | integer and real</li>
|
---|
66 | <li><a href="stat.h#qhstat">qhstat</a> global data
|
---|
67 | structure for statistics </li>
|
---|
68 | </ul>
|
---|
69 | <h3><a href="qh-stat.htm#TOC">»</a><a name="tconst">stat.h
|
---|
70 | constants</a></h3>
|
---|
71 | <ul>
|
---|
72 | <li><a href="stat.h#KEEPstatistics">qh_KEEPstatistics</a> 0 turns off most statistics</li>
|
---|
73 | <li><a href="stat.h#statistics">Z..., W...</a> integer (Z) and real (W) statistics
|
---|
74 | </li>
|
---|
75 | <li><a href="stat.h#ZZstat">ZZstat</a> Z.../W... statistics that
|
---|
76 | remain defined if qh_KEEPstatistics=0
|
---|
77 | </li>
|
---|
78 | <li><a href="stat.h#ztype">ztype</a> zdoc, zinc, etc.
|
---|
79 | for definining statistics </li>
|
---|
80 | </ul>
|
---|
81 | <h3><a href="qh-stat.htm#TOC">»</a><a name="tmacro">stat.h macros</a></h3>
|
---|
82 | <ul>
|
---|
83 | <li><a href="stat.h#MAYdebugx">MAYdebugx</a> called
|
---|
84 | frequently for error trapping </li>
|
---|
85 | <li><a href="stat.h#zadd_">zadd_/wadd_</a> add value
|
---|
86 | to an integer or real statistic </li>
|
---|
87 | <li><a href="stat.h#zdef_">zdef_</a> define a
|
---|
88 | statistic </li>
|
---|
89 | <li><a href="stat.h#zinc_">zinc_</a> increment an
|
---|
90 | integer statistic </li>
|
---|
91 | <li><a href="stat.h#zmax_">zmax_/wmax_</a> update
|
---|
92 | integer or real maximum statistic </li>
|
---|
93 | <li><a href="stat.h#zmin_">zmin_/wmin_</a> update
|
---|
94 | integer or real minimum statistic </li>
|
---|
95 | <li><a href="stat.h#zval_">zval_/wval_</a> set or
|
---|
96 | return value of a statistic </li>
|
---|
97 | </ul>
|
---|
98 |
|
---|
99 | <h3><a href="qh-stat.htm#TOC">»</a><a name="tfunc">stat.c
|
---|
100 | functions</a></h3>
|
---|
101 | <ul>
|
---|
102 | <li><a href="stat.c#allstatA">qh_allstatA</a> define
|
---|
103 | statistics in groups of 20 </li>
|
---|
104 | <li><a href="stat.c#allstatistics">qh_allstatistics</a>
|
---|
105 | reset printed flag for all statistics </li>
|
---|
106 | <li><a href="stat.c#collectstatistics">qh_collectstatistics</a>
|
---|
107 | collect statistics for qh.facet_list </li>
|
---|
108 | <li><a href="stat.c#freestatistics">qh_freestatistics</a>
|
---|
109 | free memory used for statistics </li>
|
---|
110 | <li><a href="stat.c#initstatistics">qh_initstatistics</a>
|
---|
111 | allocate and initialize statistics </li>
|
---|
112 | <li><a href="stat.c#newstats">qh_newstats</a> returns
|
---|
113 | True if statistics for zdoc </li>
|
---|
114 | <li><a href="stat.c#nostatistic">qh_nostatistic</a>
|
---|
115 | true if no statistic to print </li>
|
---|
116 | <li><a href="stat.c#printallstatistics">qh_printallstatistics</a>
|
---|
117 | print all statistics </li>
|
---|
118 | <li><a href="stat.c#printstatistics">qh_printstatistics</a>
|
---|
119 | print statistics to a file </li>
|
---|
120 | <li><a href="stat.c#printstatlevel">qh_printstatlevel</a>
|
---|
121 | print level information for a statistic </li>
|
---|
122 | <li><a href="stat.c#printstats">qh_printstats</a>
|
---|
123 | print statistics for a zdoc group </li>
|
---|
124 | <li><a href="stat.c#stddev">qh_stddev</a> compute the
|
---|
125 | standard deviation and average from statistics </li>
|
---|
126 | </ul>
|
---|
127 |
|
---|
128 | <p><!-- Navigation links --> </p>
|
---|
129 | <hr>
|
---|
130 | <p><b>Up:</b>
|
---|
131 | <a href="http://www.qhull.org">Home page for
|
---|
132 | Qhull</a> <br>
|
---|
133 | <b>Up:</b> <a href="../../html/index.htm#TOC">Qhull manual: Table of Contents</a> <br>
|
---|
134 | <b>Up:</b> <a href="../../html/qh-quick.htm#programs">Programs</a>
|
---|
135 | • <a href="../../html/qh-quick.htm#options">Options</a>
|
---|
136 | • <a href="../../html/qh-opto.htm#output">Output</a>
|
---|
137 | • <a href="../../html/qh-optf.htm#format">Formats</a>
|
---|
138 | • <a href="../../html/qh-optg.htm#geomview">Geomview</a>
|
---|
139 | • <a href="../../html/qh-optp.htm#print">Print</a>
|
---|
140 | • <a href="../../html/qh-optq.htm#qhull">Qhull</a>
|
---|
141 | • <a href="../../html/qh-optc.htm#prec">Precision</a>
|
---|
142 | • <a href="../../html/qh-optt.htm#trace">Trace</a><br>
|
---|
143 | <b>Up:</b> <a href="../../html/qh-code.htm#TOC">Qhull code: Table of Contents</a> <br>
|
---|
144 | <b>To:</b> <a href="index.htm">Qhull functions</a>, macros, and data structures<br>
|
---|
145 | <b>To:</b> <a href="qh-geom.htm">Geom</a> •
|
---|
146 | <a href="qh-globa.htm">Global</a> • <a href="qh-io.htm">Io</a>
|
---|
147 | • <a href="qh-mem.htm">Mem</a> • <a href="qh-merge.htm">Merge</a>
|
---|
148 | • <a href="qh-poly.htm">Poly</a> • <a href="qh-qhull.htm#TOC">Qhull</a>
|
---|
149 | • <a href="qh-set.htm">Set</a> • <a href="qh-stat.htm">Stat</a>
|
---|
150 | • <a href="qh-user.htm">User</a><br>
|
---|
151 | </p>
|
---|
152 | <p><!-- GC common information --> </p>
|
---|
153 | <hr>
|
---|
154 | <p><a href="http://www.geom.uiuc.edu/"><img
|
---|
155 | src="../../html/qh--geom.gif" align="middle" width="40" height="40"></a><i>The
|
---|
156 | Geometry Center Home Page </i></p>
|
---|
157 | <p>Comments to: <a href=mailto:qhull@qhull.org>qhull@qhull.org</a>
|
---|
158 | </a><br>
|
---|
159 | Created: May 2, 1997 --- <!-- hhmts start --> Last modified: see top <!-- hhmts end --> </p>
|
---|
160 | </body>
|
---|
161 | </html>
|
---|