| 1 | /*<html><pre> -<a href="qh-stat_r.htm" |
| 2 | >-------------------------------</a><a name="TOP">-</a> |
| 3 | |
| 4 | stat_r.c |
| 5 | contains all statistics that are collected for qhull |
| 6 | |
| 7 | see qh-stat_r.htm and stat_r.h |
| 8 | |
| 9 | Copyright (c) 1993-2020 The Geometry Center. |
| 10 | $Id: //main/2019/qhull/src/libqhull_r/stat_r.c#9 $$Change: 3037 $ |
| 11 | $DateTime: 2020/09/03 17:28:32 $$Author: bbarber $ |
| 12 | */ |
| 13 | |
| 14 | #include "qhull_ra.h"cxx . . $ `<file>/vendor/qhull/libqhull_r/qhull_ra.h`/ |
| 15 | |
| 16 | /*========== functions in alphabetic order ================*/ |
| 17 | |
| 18 | /*-<a href="qh-stat_r.htm#TOC" |
| 19 | >-------------------------------</a><a name="allstatA">-</a> |
| 20 | |
| 21 | qh_allstatA() |
| 22 | define statistics in groups of 20 |
| 23 | |
| 24 | notes: |
| 25 | (otherwise, 'gcc -O2' uses too much memory) |
| 26 | uses qhstat.next |
| 27 | */ |
| 28 | void qh_allstatAcxx . . $ qh_allstatA(fb32973c8cc8eae9).(qhTcxx . . $ qhT# *qh) { |
| 29 | |
| 30 | /* zdef_(type,name,doc,average) */ |
| 31 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(zdoc, Zdoc2, "precision statistics", -1); |
| 32 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Znewvertex, NULL, -1); |
| 33 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(wadd, Wnewvertex, "ave. distance of a new vertex to a facet", Znewvertex); |
| 34 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(wmax, Wnewvertexmax, "max. distance of a new vertex to a facet", -1); |
| 35 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(wmax, Wvertexmax, "max. distance of an output vertex to a facet", -1); |
| 36 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(wmin, Wvertexmin, "min. distance of an output vertex to a facet", -1); |
| 37 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(wmin, Wmindenom, "min. denominator in hyperplane computation", -1); |
| 38 | |
| 39 | qh->qhstatcxx . . $ qhT#qhstat..precisioncxx . . $ qhstatT#precision.= qh->qhstatcxx . . $ qhT#qhstat..nextcxx . . $ qhstatT#next.; /* usually call qh_joggle_restart, printed if Q0 or QJn */ |
| 40 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(zdoc, Zdoc3, "precision problems (corrected unless 'Q0' or an error)", -1); |
| 41 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(zinc, Zcoplanarridges, "coplanar half ridges in output", -1); |
| 42 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(zinc, Zconcaveridges, "concave half ridges in output", -1); |
| 43 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(zinc, Zflippedfacets, "flipped facets", -1); |
| 44 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(zinc, Zcoplanarhorizon, "coplanar horizon facets for new vertices", -1); |
| 45 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(zinc, Zcoplanarpart, "coplanar points during partitioning", -1); |
| 46 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(zinc, Zminnorm, "degenerate hyperplanes recomputed with gaussian elimination", -1); |
| 47 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(zinc, Znearlysingular, "nearly singular or axis-parallel hyperplanes", -1); |
| 48 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(zinc, Zback0, "zero divisors during back substitute", -1); |
| 49 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(zinc, Zgauss0, "zero divisors during gaussian elimination", -1); |
| 50 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(zinc, Zmultiridge, "dupridges with multiple neighbors", -1); |
| 51 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(zinc, Zflipridge, "dupridges with flip facet into good neighbor", -1); |
| 52 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(zinc, Zflipridge2, "dupridges with flip facet into good flip neighbor", -1); |
| 53 | } |
| 54 | void qh_allstatBcxx . . $ qh_allstatB(fb32973c8cc8eae9).(qhTcxx . . $ qhT# *qh) { |
| 55 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(zdoc, Zdoc1, "summary information", -1); |
| 56 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zvertices, "number of vertices in output", -1); |
| 57 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Znumfacets, "number of facets in output", -1); |
| 58 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Znonsimplicial, "number of non-simplicial facets in output", -1); |
| 59 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Znowsimplicial, "simplicial facets that were non-simplicial", -1); |
| 60 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Znumridges, "number of ridges in output", -1); |
| 61 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zadd, Znumridges, "average number of ridges per facet", Znumfacets); |
| 62 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zmax, Zmaxridges, "maximum number of ridges", -1); |
| 63 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zadd, Znumneighbors, "average number of neighbors per facet", Znumfacets); |
| 64 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zmax, Zmaxneighbors, "maximum number of neighbors", -1); |
| 65 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zadd, Znumvertices, "average number of vertices per facet", Znumfacets); |
| 66 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zmax, Zmaxvertices, "maximum number of vertices", -1); |
| 67 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zadd, Znumvneighbors, "average number of neighbors per vertex", Zvertices); |
| 68 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zmax, Zmaxvneighbors, "maximum number of neighbors", -1); |
| 69 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(wadd, Wcpu, "cpu seconds for qhull after input", -1); |
| 70 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Ztotvertices, "vertices created altogether", -1); |
| 71 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(zinc, Zsetplane, "facets created altogether", -1); |
| 72 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Ztotridges, "ridges created altogether", -1); |
| 73 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zpostfacets, "facets before post merge", -1); |
| 74 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zadd, Znummergetot, "average merges per facet (at most 511)", Znumfacets); |
| 75 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zmax, Znummergemax, " maximum merges for a facet (at most 511)", -1); |
| 76 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zangle, NULL, -1); |
| 77 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(wadd, Wangle, "average cosine (angle) of facet normals for all ridges", Zangle); |
| 78 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(wmax, Wanglemax, " maximum cosine of facet normals (flatest) across a ridge", -1); |
| 79 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(wmin, Wanglemin, " minimum cosine of facet normals (sharpest) across a ridge", -1); |
| 80 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(wadd, Wareatot, "total area of facets", -1); |
| 81 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(wmax, Wareamax, " maximum facet area", -1); |
| 82 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(wmin, Wareamin, " minimum facet area", -1); |
| 83 | } |
| 84 | void qh_allstatCcxx . . $ qh_allstatC(fb32973c8cc8eae9).(qhTcxx . . $ qhT# *qh) { |
| 85 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zdoc, Zdoc9, "build hull statistics", -1); |
| 86 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(zinc, Zprocessed, "points processed", -1); |
| 87 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(zinc, Zretry, "retries due to precision problems", -1); |
| 88 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(wmax, Wretrymax, " max. random joggle", -1); |
| 89 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zmax, Zmaxvertex, "max. vertices at any one time", -1); |
| 90 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Ztotvisible, "ave. visible facets per iteration", Zprocessed); |
| 91 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zinsidevisible, " ave. visible facets without an horizon neighbor", Zprocessed); |
| 92 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zadd, Zvisfacettot, " ave. facets deleted per iteration", Zprocessed); |
| 93 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zmax, Zvisfacetmax, " maximum", -1); |
| 94 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zadd, Zvisvertextot, "ave. visible vertices per iteration", Zprocessed); |
| 95 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zmax, Zvisvertexmax, " maximum", -1); |
| 96 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Ztothorizon, "ave. horizon facets per iteration", Zprocessed); |
| 97 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zadd, Znewfacettot, "ave. new or merged facets per iteration", Zprocessed); |
| 98 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zmax, Znewfacetmax, " maximum (includes initial simplex)", -1); |
| 99 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(wadd, Wnewbalance, "average new facet balance", Zprocessed); |
| 100 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(wadd, Wnewbalance2, " standard deviation", -1); |
| 101 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(wadd, Wpbalance, "average partition balance", Zpbalance); |
| 102 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(wadd, Wpbalance2, " standard deviation", -1); |
| 103 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zpbalance, " count", -1); |
| 104 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zsearchpoints, "searches of all points for initial simplex", -1); |
| 105 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zdetfacetarea, "determinants for facet area", -1); |
| 106 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Znoarea, " determinants not computed because vertex too low", -1); |
| 107 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zdetsimplex, "determinants for initial hull or voronoi vertices", -1); |
| 108 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Znotmax, "points ignored (!above max_outside)", -1); |
| 109 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zpinchedapex, "points ignored (pinched apex)", -1); |
| 110 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Znotgood, "points ignored (!above a good facet)", -1); |
| 111 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Znotgoodnew, "points ignored (didn't create a good new facet)", -1); |
| 112 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zgoodfacet, "good facets found", -1); |
| 113 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(zinc, Znumvisibility, "distance tests for facet visibility", -1); |
| 114 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zdistvertex, "distance tests to report minimum vertex", -1); |
| 115 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(zinc, Ztotcheck, "points checked for facets' outer planes", -1); |
| 116 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(zinc, Zcheckpart, " ave. distance tests per check", Ztotcheck); |
| 117 | } |
| 118 | void qh_allstatDcxx . . $ qh_allstatD(fb32973c8cc8eae9).(qhTcxx . . $ qhT# *qh) { |
| 119 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zvisit, "resets of visit_id", -1); |
| 120 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zvvisit, " resets of vertex_visit", -1); |
| 121 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zmax, Zvisit2max, " max visit_id/2", -1); |
| 122 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zmax, Zvvisit2max, " max vertex_visit/2", -1); |
| 123 | |
| 124 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zdoc, Zdoc4, "partitioning statistics (see previous for outer planes)", -1); |
| 125 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(zadd, Zdelvertextot, "total vertices deleted", -1); |
| 126 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zmax, Zdelvertexmax, " maximum vertices deleted per iteration", -1); |
| 127 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zfindbest, "calls to findbest", -1); |
| 128 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zadd, Zfindbesttot, " ave. facets tested", Zfindbest); |
| 129 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zmax, Zfindbestmax, " max. facets tested", -1); |
| 130 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zadd, Zfindcoplanar, " ave. coplanar search", Zfindbest); |
| 131 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zfindnew, "calls to findbestnew", -1); |
| 132 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zadd, Zfindnewtot, " ave. facets tested", Zfindnew); |
| 133 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zmax, Zfindnewmax, " max. facets tested", -1); |
| 134 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zfindnewjump, " ave. clearly better", Zfindnew); |
| 135 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zfindnewsharp, " calls due to qh_sharpnewfacets", -1); |
| 136 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zfindhorizon, "calls to findhorizon", -1); |
| 137 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zadd, Zfindhorizontot, " ave. facets tested", Zfindhorizon); |
| 138 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zmax, Zfindhorizonmax, " max. facets tested", -1); |
| 139 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zfindjump, " ave. clearly better", Zfindhorizon); |
| 140 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Znewbesthorizon, " new bestfacets during qh_findbesthorizon", -1); |
| 141 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zpartangle, "angle tests for repartitioned coplanar points", -1); |
| 142 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zpartcorner, " repartitioned coplanar points above a corner facet", -1); |
| 143 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zparthidden, " repartitioned coplanar points above a hidden facet", -1); |
| 144 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zparttwisted, " repartitioned coplanar points above a twisted facet", -1); |
| 145 | } |
| 146 | void qh_allstatEcxx . . $ qh_allstatE(fb32973c8cc8eae9).(qhTcxx . . $ qhT# *qh) { |
| 147 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zpartinside, "inside points", -1); |
| 148 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zpartnear, " near inside points kept with a facet", -1); |
| 149 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zcoplanarinside, " inside points that were coplanar with a facet", -1); |
| 150 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zbestlower, "calls to findbestlower", -1); |
| 151 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zbestlowerv, " with search of vertex neighbors", -1); |
| 152 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zbestlowerall, " with rare search of all facets", -1); |
| 153 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zmax, Zbestloweralln, " facets per search of all facets", -1); |
| 154 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(wadd, Wmaxout, "difference in max_outside at final check", -1); |
| 155 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(zinc, Zpartitionall, "distance tests for initial partition", -1); |
| 156 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Ztotpartition, "partitions of a point", -1); |
| 157 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(zinc, Zpartition, "distance tests for partitioning", -1); |
| 158 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(zinc, Zdistcheck, "distance tests for checking flipped facets", -1); |
| 159 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(zinc, Zdistconvex, "distance tests for checking convexity", -1); |
| 160 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zdistgood, "distance tests for checking good point", -1); |
| 161 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zdistio, "distance tests for output", -1); |
| 162 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zdiststat, "distance tests for statistics", -1); |
| 163 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(zinc, Zdistplane, "total number of distance tests", -1); |
| 164 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Ztotpartcoplanar, "partitions of coplanar points or deleted vertices", -1); |
| 165 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(zinc, Zpartcoplanar, " distance tests for these partitions", -1); |
| 166 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zcomputefurthest, "distance tests for computing furthest", -1); |
| 167 | } |
| 168 | void qh_allstatE2cxx . . $ qh_allstatE2(fb32973c8cc8eae9).(qhTcxx . . $ qhT# *qh) { |
| 169 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zdoc, Zdoc5, "statistics for matching ridges", -1); |
| 170 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zhashlookup, "total lookups for matching ridges of new facets", -1); |
| 171 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zhashtests, "average number of tests to match a ridge", Zhashlookup); |
| 172 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zhashridge, "total lookups of subridges (duplicates and boundary)", -1); |
| 173 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zhashridgetest, "average number of tests per subridge", Zhashridge); |
| 174 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zdupsame, "duplicated ridges in same merge cycle", -1); |
| 175 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zdupflip, "duplicated ridges with flipped facets", -1); |
| 176 | |
| 177 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zdoc, Zdoc6, "statistics for determining merges", -1); |
| 178 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zangletests, "angles computed for ridge convexity", -1); |
| 179 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zbestcentrum, "best merges used centrum instead of vertices",-1); |
| 180 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(zinc, Zbestdist, "distance tests for best merge", -1); |
| 181 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(zinc, Zcentrumtests, "distance tests for centrum convexity", -1); |
| 182 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(zinc, Zvertextests, "distance tests for vertex convexity", -1); |
| 183 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(zinc, Zdistzero, "distance tests for checking simplicial convexity", -1); |
| 184 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zcoplanarangle, "coplanar angles in getmergeset", -1); |
| 185 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zcoplanarcentrum, "coplanar centrums or vertices in getmergeset", -1); |
| 186 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zconcaveridge, "concave ridges in getmergeset", -1); |
| 187 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zconcavecoplanarridge, "concave-coplanar ridges in getmergeset", -1); |
| 188 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Ztwistedridge, "twisted ridges in getmergeset", -1); |
| 189 | } |
| 190 | void qh_allstatFcxx . . $ qh_allstatF(fb32973c8cc8eae9).(qhTcxx . . $ qhT# *qh) { |
| 191 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zdoc, Zdoc7, "statistics for merging", -1); |
| 192 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zpremergetot, "merge iterations", -1); |
| 193 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zadd, Zmergeinittot, "ave. initial non-convex ridges per iteration", Zpremergetot); |
| 194 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zadd, Zmergeinitmax, " maximum", -1); |
| 195 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zadd, Zmergesettot, " ave. additional non-convex ridges per iteration", Zpremergetot); |
| 196 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zadd, Zmergesetmax, " maximum additional in one pass", -1); |
| 197 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zadd, Zmergeinittot2, "initial non-convex ridges for post merging", -1); |
| 198 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zadd, Zmergesettot2, " additional non-convex ridges", -1); |
| 199 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(wmax, Wmaxoutside, "max distance of vertex or coplanar point above facet (w/roundoff)", -1); |
| 200 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(wmin, Wminvertex, "max distance of vertex below facet (or roundoff)", -1); |
| 201 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zwidefacet, "centrums frozen due to a wide merge", -1); |
| 202 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zwidevertices, "centrums frozen due to extra vertices", -1); |
| 203 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(zinc, Ztotmerge, "total number of facets or cycles of facets merged", -1); |
| 204 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zmergesimplex, "merged a simplex", -1); |
| 205 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zonehorizon, "simplices merged into coplanar horizon", -1); |
| 206 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(zinc, Zcyclehorizon, "cycles of facets merged into coplanar horizon", -1); |
| 207 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(zadd, Zcyclefacettot, " ave. facets per cycle", Zcyclehorizon); |
| 208 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zmax, Zcyclefacetmax, " max. facets", -1); |
| 209 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zmergeintocoplanar, "new facets merged into coplanar horizon", -1); |
| 210 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zmergeintohorizon, "new facets merged into horizon", -1); |
| 211 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zmergenew, "new facets merged", -1); |
| 212 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zmergehorizon, "horizon facets merged into new facets", -1); |
| 213 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zmergevertex, "vertices deleted by merging", -1); |
| 214 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zcyclevertex, "vertices deleted by merging into coplanar horizon", -1); |
| 215 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zdegenvertex, "vertices deleted by degenerate facet", -1); |
| 216 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zmergeflipdup, "merges due to flipped facets in duplicated ridge", -1); |
| 217 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zredundant, "merges due to redundant neighbors", -1); |
| 218 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zredundantmerge, " detected by qh_test_nonsimplicial_merge instead of qh_test_redundant_neighbors", -1); |
| 219 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zadd, Ztestvneighbor, "non-convex vertex neighbors", -1); |
| 220 | } |
| 221 | void qh_allstatGcxx . . $ qh_allstatG(fb32973c8cc8eae9).(qhTcxx . . $ qhT# *qh) { |
| 222 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zacoplanar, "merges due to angle coplanar facets", -1); |
| 223 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(wadd, Wacoplanartot, " average merge distance", Zacoplanar); |
| 224 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(wmax, Wacoplanarmax, " maximum merge distance", -1); |
| 225 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zcoplanar, "merges due to coplanar facets", -1); |
| 226 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(wadd, Wcoplanartot, " average merge distance", Zcoplanar); |
| 227 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(wmax, Wcoplanarmax, " maximum merge distance", -1); |
| 228 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zconcave, "merges due to concave facets", -1); |
| 229 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(wadd, Wconcavetot, " average merge distance", Zconcave); |
| 230 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(wmax, Wconcavemax, " maximum merge distance", -1); |
| 231 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zconcavecoplanar, "merges due to concave-coplanar facets", -1); |
| 232 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(wadd, Wconcavecoplanartot, " average merge distance", Zconcavecoplanar); |
| 233 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(wmax, Wconcavecoplanarmax, " maximum merge distance", -1); |
| 234 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zavoidold, "coplanar/concave merges due to avoiding old merge", -1); |
| 235 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(wadd, Wavoidoldtot, " average merge distance", Zavoidold); |
| 236 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(wmax, Wavoidoldmax, " maximum merge distance", -1); |
| 237 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zdegen, "merges due to degenerate facets", -1); |
| 238 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(wadd, Wdegentot, " average merge distance", Zdegen); |
| 239 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(wmax, Wdegenmax, " maximum merge distance", -1); |
| 240 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zflipped, "merges due to removing flipped facets", -1); |
| 241 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(wadd, Wflippedtot, " average merge distance", Zflipped); |
| 242 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(wmax, Wflippedmax, " maximum merge distance", -1); |
| 243 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zduplicate, "merges due to dupridges", -1); |
| 244 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(wadd, Wduplicatetot, " average merge distance", Zduplicate); |
| 245 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(wmax, Wduplicatemax, " maximum merge distance", -1); |
| 246 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Ztwisted, "merges due to twisted facets", -1); |
| 247 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(wadd, Wtwistedtot, " average merge distance", Ztwisted); |
| 248 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(wmax, Wtwistedmax, " maximum merge distance", -1); |
| 249 | } |
| 250 | void qh_allstatHcxx . . $ qh_allstatH(fb32973c8cc8eae9).(qhTcxx . . $ qhT# *qh) { |
| 251 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zdoc, Zdoc8, "statistics for vertex merges", -1); |
| 252 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(zinc, Zpinchduplicate, "merge pinched vertices for a duplicate ridge", -1); |
| 253 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(zinc, Zpinchedvertex, "merge pinched vertices for a dupridge", -1); |
| 254 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zrenameshare, "renamed vertices shared by two facets", -1); |
| 255 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zrenamepinch, "renamed vertices in a pinched facet", -1); |
| 256 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zrenameall, "renamed vertices shared by multiple facets", -1); |
| 257 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zfindfail, "rename failures due to duplicated ridges", -1); |
| 258 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Znewvertexridge, " found new vertex in ridge", -1); |
| 259 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zdelridge, "deleted ridges due to renamed vertices", -1); |
| 260 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zdropneighbor, "dropped neighbors due to renamed vertices", -1); |
| 261 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zdropdegen, "merge degenerate facets due to dropped neighbors", -1); |
| 262 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zdelfacetdup, " facets deleted because of no neighbors", -1); |
| 263 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zremvertex, "vertices removed from facets due to no ridges", -1); |
| 264 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zremvertexdel, " deleted", -1); |
| 265 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zretryadd, "retry qh_addpoint after merge pinched vertex", -1); |
| 266 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zadd, Zretryaddtot, " tot. merge pinched vertex due to dupridge", -1); |
| 267 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zmax, Zretryaddmax, " max. merge pinched vertex for a qh_addpoint", -1); |
| 268 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zintersectnum, "vertex intersections for locating redundant vertices", -1); |
| 269 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zintersectfail, "intersections failed to find a redundant vertex", -1); |
| 270 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zintersect, "intersections found redundant vertices", -1); |
| 271 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zadd, Zintersecttot, " ave. number found per vertex", Zintersect); |
| 272 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zmax, Zintersectmax, " max. found for a vertex", -1); |
| 273 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Zvertexridge, NULL, -1); |
| 274 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zadd, Zvertexridgetot, " ave. number of ridges per tested vertex", Zvertexridge); |
| 275 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zmax, Zvertexridgemax, " max. number of ridges per tested vertex", -1); |
| 276 | |
| 277 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zdoc, Zdoc10, "memory usage statistics (in bytes)", -1); |
| 278 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zadd, Zmemfacets, "for facets and their normals, neighbor and vertex sets", -1); |
| 279 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zadd, Zmemvertices, "for vertices and their neighbor sets", -1); |
| 280 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zadd, Zmempoints, "for input points, outside and coplanar sets, and qhT",-1); |
| 281 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zadd, Zmemridges, "for ridges and their vertex sets", -1); |
| 282 | } /* allstat */ |
| 283 | |
| 284 | void qh_allstatIcxx . . $ qh_allstatI(fb32973c8cc8eae9).(qhTcxx . . $ qhT# *qh) { |
| 285 | qh->qhstatcxx . . $ qhT#qhstat..vridgescxx . . $ qhstatT#vridges.= qh->qhstatcxx . . $ qhT#qhstat..nextcxx . . $ qhstatT#next.; /* printed in qh_produce_output2 if non-zero Zridge or Zridgemid */ |
| 286 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(zdoc, Zdoc11, "Voronoi ridge statistics", -1); |
| 287 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(zinc, Zridge, "non-simplicial Voronoi vertices for all ridges", -1); |
| 288 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(wadd, Wridge, " ave. distance to ridge", Zridge); |
| 289 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(wmax, Wridgemax, " max. distance to ridge", -1); |
| 290 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(zinc, Zridgemid, "bounded ridges", -1); |
| 291 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(wadd, Wridgemid, " ave. distance of midpoint to ridge", Zridgemid); |
| 292 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(wmax, Wridgemidmax, " max. distance of midpoint to ridge", -1); |
| 293 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(zinc, Zridgeok, "bounded ridges with ok normal", -1); |
| 294 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(wadd, Wridgeok, " ave. angle to ridge", Zridgeok); |
| 295 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(wmax, Wridgeokmax, " max. angle to ridge", -1); |
| 296 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(zinc, Zridge0, "bounded ridges with near-zero normal", -1); |
| 297 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(wadd, Wridge0, " ave. angle to ridge", Zridge0); |
| 298 | zzdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:409:9`!(wmax, Wridge0max, " max. angle to ridge", -1); |
| 299 | |
| 300 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zdoc, Zdoc12, "Triangulation statistics ('Qt')", -1); |
| 301 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Ztricoplanar, "non-simplicial facets triangulated", -1); |
| 302 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zadd, Ztricoplanartot, " ave. new facets created (may be deleted)", Ztricoplanar); |
| 303 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zmax, Ztricoplanarmax, " max. new facets created", -1); |
| 304 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Ztrinull, "null new facets deleted (duplicated vertex)", -1); |
| 305 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Ztrimirror, "mirrored pairs of new facets deleted (same vertices)", -1); |
| 306 | zdef_cxx . . $ `vendor/qhull/libqhull_r/stat_r.h:415:9`!(zinc, Ztridegen, "degenerate new facets in output (same ridge)", -1); |
| 307 | } /* allstat */ |
| 308 | |
| 309 | /*-<a href="qh-stat_r.htm#TOC" |
| 310 | >-------------------------------</a><a name="allstatistics">-</a> |
| 311 | |
| 312 | qh_allstatistics() |
| 313 | reset printed flag for all statistics |
| 314 | */ |
| 315 | void qh_allstatisticscxx . . $ qh_allstatistics(fb32973c8cc8eae9).(qhTcxx . . $ qhT# *qh) { |
| 316 | int i; |
| 317 | |
| 318 | for(i=ZENDcxx . . $ ZEND.; i--; ) |
| 319 | qh->qhstatcxx . . $ qhT#qhstat..printedcxx . . $ qhstatT#printed.[i]= Falsecxx . . $ `vendor/qhull/libqhull_r/libqhull_r.h:137:9`!; |
| 320 | } /* allstatistics */ |
| 321 | |
| 322 | #if qh_KEEPstatisticscxx . . $ `vendor/qhull/libqhull_r/user_r.h:576:9`! |
| 323 | /*-<a href="qh-stat_r.htm#TOC" |
| 324 | >-------------------------------</a><a name="collectstatistics">-</a> |
| 325 | |
| 326 | qh_collectstatistics() |
| 327 | collect statistics for qh.facet_list |
| 328 | |
| 329 | */ |
| 330 | void qh_collectstatistics(qhT *qh) { |
| 331 | facetT *facet, *neighbor, **neighborp; |
| 332 | vertexT *vertex, **vertexp; |
| 333 | realT dotproduct, dist; |
| 334 | int sizneighbors, sizridges, sizvertices, i; |
| 335 | |
| 336 | qh->old_randomdist= qh->RANDOMdist; |
| 337 | qh->RANDOMdist= False; |
| 338 | zval_(Zmempoints)= qh->num_points * qh->normal_size + (int)sizeof(qhT); |
| 339 | zval_(Zmemfacets)= 0; |
| 340 | zval_(Zmemridges)= 0; |
| 341 | zval_(Zmemvertices)= 0; |
| 342 | zval_(Zangle)= 0; |
| 343 | wval_(Wangle)= 0.0; |
| 344 | zval_(Znumridges)= 0; |
| 345 | zval_(Znumfacets)= 0; |
| 346 | zval_(Znumneighbors)= 0; |
| 347 | zval_(Znumvertices)= 0; |
| 348 | zval_(Znumvneighbors)= 0; |
| 349 | zval_(Znummergetot)= 0; |
| 350 | zval_(Znummergemax)= 0; |
| 351 | zval_(Zvertices)= qh->num_vertices - qh_setsize(qh, qh->del_vertices); |
| 352 | if (qh->MERGING || qh->APPROXhull || qh->JOGGLEmax < REALmax/2) |
| 353 | wmax_(Wmaxoutside, qh->max_outside); |
| 354 | if (qh->MERGING) |
| 355 | wmin_(Wminvertex, qh->min_vertex); |
| 356 | if (!qh_checklists(qh, qh->facet_list)) { |
| 357 | qh_fprintf(qh, qh->ferr, 6373, "qhull internal error: qh_checklists failed on qh_collectstatistics\n"); |
| 358 | if (!qh->ERREXITcalled) |
| 359 | qh_errexit(qh, qh_ERRqhull, NULL, NULL); |
| 360 | } |
| 361 | FORALLfacets |
| 362 | facet->seen= False; |
| 363 | if (qh->DELAUNAY) { |
| 364 | FORALLfacets { |
| 365 | if (facet->upperdelaunay != qh->UPPERdelaunay) |
| 366 | facet->seen= True; /* remove from angle statistics */ |
| 367 | } |
| 368 | } |
| 369 | FORALLfacets { |
| 370 | if (facet->visible && qh->NEWfacets) |
| 371 | continue; |
| 372 | sizvertices= qh_setsize(qh, facet->vertices); |
| 373 | sizneighbors= qh_setsize(qh, facet->neighbors); |
| 374 | sizridges= qh_setsize(qh, facet->ridges); |
| 375 | zinc_(Znumfacets); |
| 376 | zadd_(Znumvertices, sizvertices); |
| 377 | zmax_(Zmaxvertices, sizvertices); |
| 378 | zadd_(Znumneighbors, sizneighbors); |
| 379 | zmax_(Zmaxneighbors, sizneighbors); |
| 380 | zadd_(Znummergetot, facet->nummerge); |
| 381 | i= facet->nummerge; /* avoid warnings */ |
| 382 | zmax_(Znummergemax, i); |
| 383 | if (!facet->simplicial) { |
| 384 | if (sizvertices == qh->hull_dim) { |
| 385 | zinc_(Znowsimplicial); |
| 386 | }else { |
| 387 | zinc_(Znonsimplicial); |
| 388 | } |
| 389 | } |
| 390 | if (sizridges) { |
| 391 | zadd_(Znumridges, sizridges); |
| 392 | zmax_(Zmaxridges, sizridges); |
| 393 | } |
| 394 | zadd_(Zmemfacets, (int)sizeof(facetT) + qh->normal_size + 2*SETbasesize |
| 395 | + SETelemsize * (sizneighbors + sizvertices)); |
| 396 | if (facet->ridges) { |
| 397 | zadd_(Zmemridges, |
| 398 | SETbasesize + SETelemsize * sizridges + sizridges * |
| 399 | ((int)sizeof(ridgeT) + SETbasesize + SETelemsize * (qh->hull_dim-1))/2); |
| 400 | } |
| 401 | if (facet->outsideset) |
| 402 | zadd_(Zmempoints, SETbasesize + SETelemsize * qh_setsize(qh, facet->outsideset)); |
| 403 | if (facet->coplanarset) |
| 404 | zadd_(Zmempoints, SETbasesize + SETelemsize * qh_setsize(qh, facet->coplanarset)); |
| 405 | if (facet->seen) /* Delaunay upper envelope */ |
| 406 | continue; |
| 407 | facet->seen= True; |
| 408 | FOREACHneighbor_(facet) { |
| 409 | if (neighbor == qh_DUPLICATEridge || neighbor == qh_MERGEridge |
| 410 | || neighbor->seen || !facet->normal || !neighbor->normal) |
| 411 | continue; |
| 412 | dotproduct= qh_getangle(qh, facet->normal, neighbor->normal); |
| 413 | zinc_(Zangle); |
| 414 | wadd_(Wangle, dotproduct); |
| 415 | wmax_(Wanglemax, dotproduct) |
| 416 | wmin_(Wanglemin, dotproduct) |
| 417 | } |
| 418 | if (facet->normal) { |
| 419 | FOREACHvertex_(facet->vertices) { |
| 420 | zinc_(Zdiststat); |
| 421 | qh_distplane(qh, vertex->point, facet, &dist); |
| 422 | wmax_(Wvertexmax, dist); |
| 423 | wmin_(Wvertexmin, dist); |
| 424 | } |
| 425 | } |
| 426 | } |
| 427 | FORALLvertices { |
| 428 | if (vertex->deleted) |
| 429 | continue; |
| 430 | zadd_(Zmemvertices, (int)sizeof(vertexT)); |
| 431 | if (vertex->neighbors) { |
| 432 | sizneighbors= qh_setsize(qh, vertex->neighbors); |
| 433 | zadd_(Znumvneighbors, sizneighbors); |
| 434 | zmax_(Zmaxvneighbors, sizneighbors); |
| 435 | zadd_(Zmemvertices, (int)sizeof(vertexT) + SETelemsize * sizneighbors); |
| 436 | } |
| 437 | } |
| 438 | qh->RANDOMdist= qh->old_randomdist; |
| 439 | } /* collectstatistics */ |
| 440 | #endif /* qh_KEEPstatistics */ |
| 441 | |
| 442 | /*-<a href="qh-stat_r.htm#TOC" |
| 443 | >-------------------------------</a><a name="initstatistics">-</a> |
| 444 | |
| 445 | qh_initstatistics(qh) |
| 446 | initialize statistics |
| 447 | |
| 448 | notes: |
| 449 | NOerrors -- qh_initstatistics can not use qh_errexit(), qh_fprintf, or qh.ferr |
| 450 | On first call, only qhmem.ferr is defined. qh_memalloc is not setup. |
| 451 | Also invoked by QhullQh(). |
| 452 | */ |
| 453 | void qh_initstatisticscxx . . $ qh_initstatistics(fb32973c8cc8eae9).(qhTcxx . . $ qhT# *qh) { |
| 454 | int i; |
| 455 | realTcxx . . $ `vendor/qhull/libqhull_r/user_r.h:159:9`! realx; |
| 456 | int intx; |
| 457 | |
| 458 | qh_allstatisticscxx . . $ qh_allstatistics(fb32973c8cc8eae9).(qh); |
| 459 | qh->qhstatcxx . . $ qhT#qhstat..nextcxx . . $ qhstatT#next.= 0; |
| 460 | qh_allstatAcxx . . $ qh_allstatA(fb32973c8cc8eae9).(qh); |
| 461 | qh_allstatBcxx . . $ qh_allstatB(fb32973c8cc8eae9).(qh); |
| 462 | qh_allstatCcxx . . $ qh_allstatC(fb32973c8cc8eae9).(qh); |
| 463 | qh_allstatDcxx . . $ qh_allstatD(fb32973c8cc8eae9).(qh); |
| 464 | qh_allstatEcxx . . $ qh_allstatE(fb32973c8cc8eae9).(qh); |
| 465 | qh_allstatE2cxx . . $ qh_allstatE2(fb32973c8cc8eae9).(qh); |
| 466 | qh_allstatFcxx . . $ qh_allstatF(fb32973c8cc8eae9).(qh); |
| 467 | qh_allstatGcxx . . $ qh_allstatG(fb32973c8cc8eae9).(qh); |
| 468 | qh_allstatHcxx . . $ qh_allstatH(fb32973c8cc8eae9).(qh); |
| 469 | qh_allstatIcxx . . $ qh_allstatI(fb32973c8cc8eae9).(qh); |
| 470 | if (qh->qhstatcxx . . $ qhT#qhstat..nextcxx . . $ qhstatT#next. > (int)sizeof(qh->qhstatcxx . . $ qhT#qhstat..idcxx . . $ qhstatT#id.)) { |
| 471 | qh_fprintf_stderrcxx . . $ qh_fprintf_stderr(afcfcee7634adf7d).(6184, "qhull internal error (qh_initstatistics): increase size of qhstat.id[]. qhstat.next %d should be <= sizeof(qh->qhstat.id) %d\n", |
| 472 | qh->qhstatcxx . . $ qhT#qhstat..nextcxx . . $ qhstatT#next., (int)sizeof(qh->qhstatcxx . . $ qhT#qhstat..idcxx . . $ qhstatT#id.)); |
| 473 | #if 0 /* for locating error, Znumridges should be duplicated */ |
| 474 | for(i=0; i < ZEND; i++) { |
| 475 | int j; |
| 476 | for(j=i+1; j < ZEND; j++) { |
| 477 | if (qh->qhstat.id[i] == qh->qhstat.id[j]) { |
| 478 | qh_fprintf_stderr(6185, "qhull error (qh_initstatistics): duplicated statistic %d at indices %d and %d\n", |
| 479 | qh->qhstat.id[i], i, j); |
| 480 | } |
| 481 | } |
| 482 | } |
| 483 | #endif |
| 484 | qh_exitcxx . . $ qh_exit(3ca292c338df9bb3).(qh_ERRqhullcxx . . $ `vendor/qhull/libqhull_r/libqhull_r.h:207:9`!); /* can not use qh_errexit() */ |
| 485 | } |
| 486 | qh->qhstatcxx . . $ qhT#qhstat..initcxx . . $ qhstatT#init.[zinccxx . . $ zinc.].icxx . . $ intrealT#i.= 0; |
| 487 | qh->qhstatcxx . . $ qhT#qhstat..initcxx . . $ qhstatT#init.[zaddcxx . . $ zadd.].icxx . . $ intrealT#i.= 0; |
| 488 | qh->qhstatcxx . . $ qhT#qhstat..initcxx . . $ qhstatT#init.[zmincxx . . $ zmin.].icxx . . $ intrealT#i.= INT_MAXcxx . . $ `<external>/67164224788392828/limits.h:120:9`!; |
| 489 | qh->qhstatcxx . . $ qhT#qhstat..initcxx . . $ qhstatT#init.[zmaxcxx . . $ zmax.].icxx . . $ intrealT#i.= INT_MINcxx . . $ `<external>/67164224788392828/limits.h:118:9`!; |
| 490 | qh->qhstatcxx . . $ qhT#qhstat..initcxx . . $ qhstatT#init.[waddcxx . . $ wadd.].rcxx . . $ intrealT#r.= 0; |
| 491 | qh->qhstatcxx . . $ qhT#qhstat..initcxx . . $ qhstatT#init.[wmincxx . . $ wmin.].rcxx . . $ intrealT#r.= REALmaxcxx . . $ `vendor/qhull/libqhull_r/user_r.h:160:9`!; |
| 492 | qh->qhstatcxx . . $ qhT#qhstat..initcxx . . $ qhstatT#init.[wmaxcxx . . $ wmax.].rcxx . . $ intrealT#r.= -REALmaxcxx . . $ `vendor/qhull/libqhull_r/user_r.h:160:9`!; |
| 493 | for(i=0; i < ZENDcxx . . $ ZEND.; i++) { |
| 494 | if (qh->qhstatcxx . . $ qhT#qhstat..typecxx . . $ qhstatT#type.[i] > ZTYPErealcxx . . $ ZTYPEreal.) { |
| 495 | realx= qh->qhstatcxx . . $ qhT#qhstat..initcxx . . $ qhstatT#init.[(unsigned char)(qh->qhstatcxx . . $ qhT#qhstat..typecxx . . $ qhstatT#type.[i])].rcxx . . $ intrealT#r.; |
| 496 | qh->qhstatcxx . . $ qhT#qhstat..statscxx . . $ qhstatT#stats.[i].rcxx . . $ intrealT#r.= realx; |
| 497 | }else if (qh->qhstatcxx . . $ qhT#qhstat..typecxx . . $ qhstatT#type.[i] != zdoccxx . . $ zdoc.) { |
| 498 | intx= qh->qhstatcxx . . $ qhT#qhstat..initcxx . . $ qhstatT#init.[(unsigned char)(qh->qhstatcxx . . $ qhT#qhstat..typecxx . . $ qhstatT#type.[i])].icxx . . $ intrealT#i.; |
| 499 | qh->qhstatcxx . . $ qhT#qhstat..statscxx . . $ qhstatT#stats.[i].icxx . . $ intrealT#i.= intx; |
| 500 | } |
| 501 | } |
| 502 | } /* initstatistics */ |
| 503 | |
| 504 | /*-<a href="qh-stat_r.htm#TOC" |
| 505 | >-------------------------------</a><a name="newstats">-</a> |
| 506 | |
| 507 | qh_newstats(qh ) |
| 508 | returns True if statistics for zdoc |
| 509 | |
| 510 | returns: |
| 511 | next zdoc |
| 512 | */ |
| 513 | boolTcxx . . $ `vendor/qhull/libqhull_r/libqhull_r.h:130:9`! qh_newstatscxx . . $ qh_newstats(a9f4975698954d4a).(qhTcxx . . $ qhT# *qh, int idx, int *nextindex) { |
| 514 | boolTcxx . . $ `vendor/qhull/libqhull_r/libqhull_r.h:130:9`! isnew= Falsecxx . . $ `vendor/qhull/libqhull_r/libqhull_r.h:137:9`!; |
| 515 | int start, i; |
| 516 | |
| 517 | if (qh->qhstatcxx . . $ qhT#qhstat..typecxx . . $ qhstatT#type.[qh->qhstatcxx . . $ qhT#qhstat..idcxx . . $ qhstatT#id.[idx]] == zdoccxx . . $ zdoc.) |
| 518 | start= idx+1; |
| 519 | else |
| 520 | start= idx; |
| 521 | for(i= start; i < qh->qhstatcxx . . $ qhT#qhstat..nextcxx . . $ qhstatT#next. && qh->qhstatcxx . . $ qhT#qhstat..typecxx . . $ qhstatT#type.[qh->qhstatcxx . . $ qhT#qhstat..idcxx . . $ qhstatT#id.[i]] != zdoccxx . . $ zdoc.; i++) { |
| 522 | if (!qh_nostatisticcxx . . $ qh_nostatistic(a3c48442624b673a).(qh, qh->qhstatcxx . . $ qhT#qhstat..idcxx . . $ qhstatT#id.[i]) && !qh->qhstatcxx . . $ qhT#qhstat..printedcxx . . $ qhstatT#printed.[qh->qhstatcxx . . $ qhT#qhstat..idcxx . . $ qhstatT#id.[i]]) |
| 523 | isnew= Truecxx . . $ `vendor/qhull/libqhull_r/libqhull_r.h:138:9`!; |
| 524 | } |
| 525 | *nextindex= i; |
| 526 | return isnew; |
| 527 | } /* newstats */ |
| 528 | |
| 529 | /*-<a href="qh-stat_r.htm#TOC" |
| 530 | >-------------------------------</a><a name="nostatistic">-</a> |
| 531 | |
| 532 | qh_nostatistic(qh, index ) |
| 533 | true if no statistic to print |
| 534 | */ |
| 535 | boolTcxx . . $ `vendor/qhull/libqhull_r/libqhull_r.h:130:9`! qh_nostatisticcxx . . $ qh_nostatistic(a3c48442624b673a).(qhTcxx . . $ qhT# *qh, int i) { |
| 536 | |
| 537 | if ((qh->qhstatcxx . . $ qhT#qhstat..typecxx . . $ qhstatT#type.[i] > ZTYPErealcxx . . $ ZTYPEreal. |
| 538 | &&qh->qhstatcxx . . $ qhT#qhstat..statscxx . . $ qhstatT#stats.[i].rcxx . . $ intrealT#r. == qh->qhstatcxx . . $ qhT#qhstat..initcxx . . $ qhstatT#init.[(unsigned char)(qh->qhstatcxx . . $ qhT#qhstat..typecxx . . $ qhstatT#type.[i])].rcxx . . $ intrealT#r.) |
| 539 | || (qh->qhstatcxx . . $ qhT#qhstat..typecxx . . $ qhstatT#type.[i] < ZTYPErealcxx . . $ ZTYPEreal. |
| 540 | &&qh->qhstatcxx . . $ qhT#qhstat..statscxx . . $ qhstatT#stats.[i].icxx . . $ intrealT#i. == qh->qhstatcxx . . $ qhT#qhstat..initcxx . . $ qhstatT#init.[(unsigned char)(qh->qhstatcxx . . $ qhT#qhstat..typecxx . . $ qhstatT#type.[i])].icxx . . $ intrealT#i.)) |
| 541 | return Truecxx . . $ `vendor/qhull/libqhull_r/libqhull_r.h:138:9`!; |
| 542 | return Falsecxx . . $ `vendor/qhull/libqhull_r/libqhull_r.h:137:9`!; |
| 543 | } /* nostatistic */ |
| 544 | |
| 545 | #if qh_KEEPstatisticscxx . . $ `vendor/qhull/libqhull_r/user_r.h:576:9`! |
| 546 | /*-<a href="qh-stat_r.htm#TOC" |
| 547 | >-------------------------------</a><a name="printallstatistics">-</a> |
| 548 | |
| 549 | qh_printallstatistics(qh, fp, string ) |
| 550 | print all statistics with header 'string' |
| 551 | */ |
| 552 | void qh_printallstatistics(qhT *qh, FILE *fp, const char *string) { |
| 553 | |
| 554 | qh_allstatistics(qh); |
| 555 | qh_collectstatistics(qh); |
| 556 | qh_printstatistics(qh, fp, string); |
| 557 | qh_memstatistics(qh, fp); |
| 558 | } |
| 559 | |
| 560 | |
| 561 | /*-<a href="qh-stat_r.htm#TOC" |
| 562 | >-------------------------------</a><a name="printstatistics">-</a> |
| 563 | |
| 564 | qh_printstatistics(qh, fp, string ) |
| 565 | print statistics to a file with header 'string' |
| 566 | skips statistics with qhstat.printed[] (reset with qh_allstatistics) |
| 567 | |
| 568 | see: |
| 569 | qh_printallstatistics() |
| 570 | */ |
| 571 | void qh_printstatistics(qhT *qh, FILE *fp, const char *string) { |
| 572 | int i, k; |
| 573 | realT ave; /* ignored */ |
| 574 | |
| 575 | if (qh->num_points != qh->num_vertices || zval_(Zpbalance) == 0) { |
| 576 | wval_(Wpbalance)= 0.0; |
| 577 | wval_(Wpbalance2)= 0.0; |
| 578 | }else |
| 579 | wval_(Wpbalance2)= qh_stddev(qh, zval_(Zpbalance), wval_(Wpbalance), |
| 580 | wval_(Wpbalance2), &ave); |
| 581 | if (zval_(Zprocessed) == 0) |
| 582 | wval_(Wnewbalance2)= 0.0; |
| 583 | else |
| 584 | wval_(Wnewbalance2)= qh_stddev(qh, zval_(Zprocessed), wval_(Wnewbalance), |
| 585 | wval_(Wnewbalance2), &ave); |
| 586 | qh_fprintf(qh, fp, 9350, "\n\ |
| 587 | %s\n\ |
| 588 | qhull invoked by: %s | %s\n %s with options:\n%s\n", |
| 589 | string, qh->rbox_command, qh->qhull_command, qh_version, qh->qhull_options); |
| 590 | |
| 591 | qh_fprintf(qh, fp, 9351, "\nprecision constants:\n\ |
| 592 | %6.2g max. abs. coordinate in the (transformed) input ('Qbd:n')\n\ |
| 593 | %6.2g max. roundoff error for distance computation ('En')\n\ |
| 594 | %6.2g max. roundoff error for angle computations\n\ |
| 595 | %6.2g min. distance for outside points ('Wn')\n\ |
| 596 | %6.2g min. distance for visible facets ('Vn')\n\ |
| 597 | %6.2g max. distance for coplanar facets ('Un')\n\ |
| 598 | %6.2g max. facet width for recomputing centrum and area\n\ |
| 599 | ", |
| 600 | qh->MAXabs_coord, qh->DISTround, qh->ANGLEround, qh->MINoutside, |
| 601 | qh->MINvisible, qh->MAXcoplanar, qh->WIDEfacet); |
| 602 | if (qh->KEEPnearinside) |
| 603 | qh_fprintf(qh, fp, 9352, "\ |
| 604 | %6.2g max. distance for near-inside points\n", qh->NEARinside); |
| 605 | if (qh->premerge_cos < REALmax/2) qh_fprintf(qh, fp, 9353, "\ |
| 606 | %6.2g max. cosine for pre-merge angle\n", qh->premerge_cos); |
| 607 | if (qh->PREmerge) qh_fprintf(qh, fp, 9354, "\ |
| 608 | %6.2g radius of pre-merge centrum\n", qh->premerge_centrum); |
| 609 | if (qh->postmerge_cos < REALmax/2) qh_fprintf(qh, fp, 9355, "\ |
| 610 | %6.2g max. cosine for post-merge angle\n", qh->postmerge_cos); |
| 611 | if (qh->POSTmerge) qh_fprintf(qh, fp, 9356, "\ |
| 612 | %6.2g radius of post-merge centrum\n", qh->postmerge_centrum); |
| 613 | qh_fprintf(qh, fp, 9357, "\ |
| 614 | %6.2g max. distance for merging two simplicial facets\n\ |
| 615 | %6.2g max. roundoff error for arithmetic operations\n\ |
| 616 | %6.2g min. denominator for division\n\ |
| 617 | zero diagonal for Gauss: ", qh->ONEmerge, REALepsilon, qh->MINdenom); |
| 618 | for(k=0; k < qh->hull_dim; k++) |
| 619 | qh_fprintf(qh, fp, 9358, "%6.2e ", qh->NEARzero[k]); |
| 620 | qh_fprintf(qh, fp, 9359, "\n\n"); |
| 621 | for(i=0 ; i < qh->qhstat.next; ) |
| 622 | qh_printstats(qh, fp, i, &i); |
| 623 | } /* printstatistics */ |
| 624 | #endif /* qh_KEEPstatistics */ |
| 625 | |
| 626 | /*-<a href="qh-stat_r.htm#TOC" |
| 627 | >-------------------------------</a><a name="printstatlevel">-</a> |
| 628 | |
| 629 | qh_printstatlevel(qh, fp, id ) |
| 630 | print level information for a statistic |
| 631 | |
| 632 | notes: |
| 633 | nop if id >= ZEND, printed, or same as initial value |
| 634 | */ |
| 635 | void qh_printstatlevelcxx . . $ qh_printstatlevel(92d3040ec5e87529).(qhTcxx . . $ qhT# *qh, FILEcxx . . $ FILE# *fp, int id) { |
| 636 | |
| 637 | if (id >= ZENDcxx . . $ ZEND. || qh->qhstatcxx . . $ qhT#qhstat..printedcxx . . $ qhstatT#printed.[id]) |
| 638 | return; |
| 639 | if (qh->qhstatcxx . . $ qhT#qhstat..typecxx . . $ qhstatT#type.[id] == zdoccxx . . $ zdoc.) { |
| 640 | qh_fprintfcxx . . $ qh_fprintf(8ec5d2aaf35eb28b).(qh, fp, 9360, "%s\n", qh->qhstatcxx . . $ qhT#qhstat..doccxx . . $ qhstatT#doc.[id]); |
| 641 | return; |
| 642 | } |
| 643 | if (qh_nostatisticcxx . . $ qh_nostatistic(a3c48442624b673a).(qh, id) || !qh->qhstatcxx . . $ qhT#qhstat..doccxx . . $ qhstatT#doc.[id]) |
| 644 | return; |
| 645 | qh->qhstatcxx . . $ qhT#qhstat..printedcxx . . $ qhstatT#printed.[id]= Truecxx . . $ `vendor/qhull/libqhull_r/libqhull_r.h:138:9`!; |
| 646 | if (qh->qhstatcxx . . $ qhT#qhstat..countcxx . . $ qhstatT#count.[id] != -1 |
| 647 | && qh->qhstatcxx . . $ qhT#qhstat..statscxx . . $ qhstatT#stats.[(unsigned char)(qh->qhstatcxx . . $ qhT#qhstat..countcxx . . $ qhstatT#count.[id])].icxx . . $ intrealT#i. == 0) |
| 648 | qh_fprintfcxx . . $ qh_fprintf(8ec5d2aaf35eb28b).(qh, fp, 9361, " *0 cnt*"); |
| 649 | else if (qh->qhstatcxx . . $ qhT#qhstat..typecxx . . $ qhstatT#type.[id] >= ZTYPErealcxx . . $ ZTYPEreal. && qh->qhstatcxx . . $ qhT#qhstat..countcxx . . $ qhstatT#count.[id] == -1) |
| 650 | qh_fprintfcxx . . $ qh_fprintf(8ec5d2aaf35eb28b).(qh, fp, 9362, "%7.2g", qh->qhstatcxx . . $ qhT#qhstat..statscxx . . $ qhstatT#stats.[id].rcxx . . $ intrealT#r.); |
| 651 | else if (qh->qhstatcxx . . $ qhT#qhstat..typecxx . . $ qhstatT#type.[id] >= ZTYPErealcxx . . $ ZTYPEreal. && qh->qhstatcxx . . $ qhT#qhstat..countcxx . . $ qhstatT#count.[id] != -1) |
| 652 | qh_fprintfcxx . . $ qh_fprintf(8ec5d2aaf35eb28b).(qh, fp, 9363, "%7.2g", qh->qhstatcxx . . $ qhT#qhstat..statscxx . . $ qhstatT#stats.[id].rcxx . . $ intrealT#r./ qh->qhstatcxx . . $ qhT#qhstat..statscxx . . $ qhstatT#stats.[(unsigned char)(qh->qhstatcxx . . $ qhT#qhstat..countcxx . . $ qhstatT#count.[id])].icxx . . $ intrealT#i.); |
| 653 | else if (qh->qhstatcxx . . $ qhT#qhstat..typecxx . . $ qhstatT#type.[id] < ZTYPErealcxx . . $ ZTYPEreal. && qh->qhstatcxx . . $ qhT#qhstat..countcxx . . $ qhstatT#count.[id] == -1) |
| 654 | qh_fprintfcxx . . $ qh_fprintf(8ec5d2aaf35eb28b).(qh, fp, 9364, "%7d", qh->qhstatcxx . . $ qhT#qhstat..statscxx . . $ qhstatT#stats.[id].icxx . . $ intrealT#i.); |
| 655 | else if (qh->qhstatcxx . . $ qhT#qhstat..typecxx . . $ qhstatT#type.[id] < ZTYPErealcxx . . $ ZTYPEreal. && qh->qhstatcxx . . $ qhT#qhstat..countcxx . . $ qhstatT#count.[id] != -1) |
| 656 | qh_fprintfcxx . . $ qh_fprintf(8ec5d2aaf35eb28b).(qh, fp, 9365, "%7.3g", (realTcxx . . $ `vendor/qhull/libqhull_r/user_r.h:159:9`!) qh->qhstatcxx . . $ qhT#qhstat..statscxx . . $ qhstatT#stats.[id].icxx . . $ intrealT#i. / qh->qhstatcxx . . $ qhT#qhstat..statscxx . . $ qhstatT#stats.[(unsigned char)(qh->qhstatcxx . . $ qhT#qhstat..countcxx . . $ qhstatT#count.[id])].icxx . . $ intrealT#i.); |
| 657 | qh_fprintfcxx . . $ qh_fprintf(8ec5d2aaf35eb28b).(qh, fp, 9366, " %s\n", qh->qhstatcxx . . $ qhT#qhstat..doccxx . . $ qhstatT#doc.[id]); |
| 658 | } /* printstatlevel */ |
| 659 | |
| 660 | |
| 661 | /*-<a href="qh-stat_r.htm#TOC" |
| 662 | >-------------------------------</a><a name="printstats">-</a> |
| 663 | |
| 664 | qh_printstats(qh, fp, index, nextindex ) |
| 665 | print statistics for a zdoc group |
| 666 | |
| 667 | returns: |
| 668 | next zdoc if non-null |
| 669 | */ |
| 670 | void qh_printstatscxx . . $ qh_printstats(952604d7261c4dd3).(qhTcxx . . $ qhT# *qh, FILEcxx . . $ FILE# *fp, int idx, int *nextindex) { |
| 671 | int j, nexti; |
| 672 | |
| 673 | if (qh_newstatscxx . . $ qh_newstats(a9f4975698954d4a).(qh, idx, &nexti)) { |
| 674 | qh_fprintfcxx . . $ qh_fprintf(8ec5d2aaf35eb28b).(qh, fp, 9367, "\n"); |
| 675 | for (j=idx; j<nexti; j++) |
| 676 | qh_printstatlevelcxx . . $ qh_printstatlevel(92d3040ec5e87529).(qh, fp, qh->qhstatcxx . . $ qhT#qhstat..idcxx . . $ qhstatT#id.[j]); |
| 677 | } |
| 678 | if (nextindex) |
| 679 | *nextindex= nexti; |
| 680 | } /* printstats */ |
| 681 | |
| 682 | #if qh_KEEPstatisticscxx . . $ `vendor/qhull/libqhull_r/user_r.h:576:9`! |
| 683 | |
| 684 | /*-<a href="qh-stat_r.htm#TOC" |
| 685 | >-------------------------------</a><a name="stddev">-</a> |
| 686 | |
| 687 | qh_stddev(qh, num, tot, tot2, ave ) |
| 688 | compute the standard deviation and average from statistics |
| 689 | |
| 690 | tot2 is the sum of the squares |
| 691 | notes: |
| 692 | computes r.m.s.: |
| 693 | (x-ave)^2 |
| 694 | == x^2 - 2x tot/num + (tot/num)^2 |
| 695 | == tot2 - 2 tot tot/num + tot tot/num |
| 696 | == tot2 - tot ave |
| 697 | */ |
| 698 | realT qh_stddev(qhT *qh, int num, realT tot, realT tot2, realT *ave) { |
| 699 | realT stddev; |
| 700 | |
| 701 | if (num <= 0) { |
| 702 | qh_fprintf(qh, qh->ferr, 7101, "qhull warning (qh_stddev): expecting num > 0. Got num %d, tot %4.4g, tot2 %4.4g. Returning 0.0\n", |
| 703 | num, tot, tot2); |
| 704 | return 0.0; |
| 705 | } |
| 706 | *ave= tot/num; |
| 707 | stddev= sqrt(fabs(tot2/num - *ave * *ave)); |
| 708 | return stddev; |
| 709 | } /* stddev */ |
| 710 | #else |
| 711 | realTcxx . . $ `vendor/qhull/libqhull_r/user_r.h:159:9`! qh_stddevcxx . . $ qh_stddev(aedd239cf8cbfcea).(qhTcxx . . $ qhT# *qh, int num, realTcxx . . $ `vendor/qhull/libqhull_r/user_r.h:159:9`! tot, realTcxx . . $ `vendor/qhull/libqhull_r/user_r.h:159:9`! tot2, realTcxx . . $ `vendor/qhull/libqhull_r/user_r.h:159:9`! *ave) { /* for qhull_r-exports.def */ |
| 712 | QHULL_UNUSEDcxx . . $ `vendor/qhull/libqhull_r/qhull_ra.h:109:11`!(qh) |
| 713 | QHULL_UNUSEDcxx . . $ `vendor/qhull/libqhull_r/qhull_ra.h:109:11`!(num) |
| 714 | QHULL_UNUSEDcxx . . $ `vendor/qhull/libqhull_r/qhull_ra.h:109:11`!(tot) |
| 715 | QHULL_UNUSEDcxx . . $ `vendor/qhull/libqhull_r/qhull_ra.h:109:11`!(tot2) |
| 716 | QHULL_UNUSEDcxx . . $ `vendor/qhull/libqhull_r/qhull_ra.h:109:11`!(ave) |
| 717 | |
| 718 | return 0.0; |
| 719 | } |
| 720 | #endif /* qh_KEEPstatistics */ |
| 721 | |
| 722 | #if !qh_KEEPstatisticscxx . . $ `vendor/qhull/libqhull_r/user_r.h:576:9`! |
| 723 | void qh_collectstatisticscxx . . $ qh_collectstatistics(fb32973c8cc8eae9).(qhTcxx . . $ qhT# *qh) {} |
| 724 | void qh_printallstatisticscxx . . $ qh_printallstatistics(66d0735a834f4f6e).(qhTcxx . . $ qhT# *qh, FILEcxx . . $ FILE# *fp, const char *string) {} |
| 725 | void qh_printstatisticscxx . . $ qh_printstatistics(66d0735a834f4f6e).(qhTcxx . . $ qhT# *qh, FILEcxx . . $ FILE# *fp, const char *string) {} |
| 726 | #endif |
| 727 |